absolutejam
Hey,
I’ve been enjoying LiveView for an internal toy-project, but I’m looking to see if there are any alternative HTML rendering/templating engines.
I’ve found https://github.com/rstacruz/expug which would be ideal as pug is my go-to, but it hasn’t been updated in 2 years and has no LiveView support.
There is also https://github.com/slime-lang/slime but this looks like it has some outstanding major issues.
Anyone have any suggestions or ideas?
Regards.
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #blog-post
- #ai
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
eahanson
I’ve been using slime for 2+ years and it’s great!
It takes a few minutes to get used to it, but once you do, the thought of typing all the HTML boilerplate seems barbaric
Slime:
There’s even an eex to slime converter to get you started.
Edit: use phoenix_slime to use Slime with Phoenix.
absolutejam
Slime looks ideal but the LiveView is mentioned but not really documented anywhere, and the current implementation (which I couldn’t get to work) apparently doesn’t do incremental updates.
As great as the eex/leex implementations are, I just can’t bear writing raw html!
Tzelon
There is also Temple that is looking promising. I didn’t have the chance to use it yet, but I’m going to try it in my next project.
https://github.com/mhanberg/temple/blob/master/README.md
absolutejam
I forgot about Temple when I posted this but Temple was my first choice when I started looking. There is currently an issue by the maintainer about implementing Live View, but it looks like they’ve not had the resources. I’d love o use Temple as the implementation as that’s keeping it even closer to raw Elixir.
I’ve looked at the current LiveView engine source code and it’s way above my Elixir skill level
edjroot
Hey, if you’re still interested in using Expug, you can take a look at my forked repos (expug, phoenix_expug).
Nothing major done so far, but I fixed this simple bug and added support for LiveView (but I’m honestly not sure if it’s the right way to do it).
I haven’t updated the docs or anything and I don’t really have many plans for it besides fixing future bugs, but I’ll gladly help if I can. Anyway, I’ve been using it for a while (admittedly for pretty simple stuff) and I’ve had no problems except for that one minor bug.
silverdr
So how’s the current state of the alternative templating languages? Any new info? I wouldn’t want to drop slim(e) unless its something HAML-like in the worst case. Therefore Temple doesn’t really cut it, even if I do appreciate its elegance.
derek-zhou
Surface. It is much more than a template engine though.
Werner
I had a look at expug and was a bit happy, because pug itself has “extends” and “block”, which would make sense for a plugin development for a CMS or Ecommerce system (like Twig for PHP and Django for Python).
Unfortunately this is not implemented in expug, too bad.
I’m still looking for a good solution for this, I like Temple very much, but at the moment I don’t know how to use it or also heex for a good plugin development.
naytro
What about liquex ?
Werner
Thanks for the advice. I haven’t used Liquid until now, but I don’t see in the docs of Liquid that you can overwrite a small part of a template in a plugin like you can in Twig or Django.
It’s always about the whole theme, which is of course strange. As I said, I may be mistaken.