templates VS temple

Compare templates vs temple and see what are their differences.

templates

A helper library for adding templating to web applications (by sugar-framework)

temple

An HTML DSL for Elixir and Phoenix (by mhanberg)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
templates temple
- 2
5 464
- -
0.0 5.1
almost 5 years ago 12 days ago
Elixir Elixir
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

templates

Posts with mentions or reviews of templates. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning templates yet.
Tracking mentions began in Dec 2020.

temple

Posts with mentions or reviews of temple. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-05.
  • “Writing an app is like coding for LaserDisc”
    2 projects | news.ycombinator.com | 5 Sep 2022
    One possible solution to this problem is the Free, Open Source Software community continuing to work toward more sophisticated tech that can bridge the gap between popular server-side languages for Web Dev and native platforms. PhoneGap was a failure because it was JS running on the phone, rather than compiling to something faster and with a more “native feel”. React Native is, IMHO, not that much better (and the React ecosystem has ridiculous fragmentation and churn). Flutter seems cool, but Dart is not a popular server-side language (and from what I heard anecdotally, Flutter also has API complexity and churn).

    Personally, I think Elixir is a natural choice for this kind of task (disclosure: I am incredibly biased in my love for Elixir).

    Macro-based DSLs are not beloved by all, but they can take you pretty far with minimal overhead, since you can theoretically target multiple platforms without even having to ship a custom runtime to the phone. Aside from the language itself, there is a great community, less fragmentation and churn, and a tendency to build thoughtful, robust libraries and frameworks with good docs.

    For inspiration, take a look at Mitch Hanberg’s Temple project[0] which compiles valid Elixir code to something that eventually gets turned into HTML.

    DockYard is also doing really cool, bleeding edge stuff with LiveView Native[1], even if it’s a bit early to predict how viable it will be for large, complex apps.

    [0]https://github.com/mhanberg/temple

    [1] https://dockyard.com/blog/2022/09/01/dockyard-r-d-build-elix...

  • What's your favorite lesser known package?
    4 projects | /r/elixir | 25 Mar 2022
    I recently also found temple and I really like the idea. I mean, Elixir is great for DSLs, why not to use it. For example, we already kinda use it for SQL, thanks to Ecto. However, the latest issue about not supporting the latest liveview and no activity for a while scared me away from actually trying it. Maybe, I should be more brave in picking up seems-to-be-dead projects. Have you tried it?

What are some alternatives?

When comparing templates and temple you can also consider the following projects:

Phoenix Inline SVG - Inline SVG module for Phoenix Framework

bbmustache - Binary pattern match Based Mustache template engine for Erlang/OTP.

mustache - Mustache templates for Elixir

eml - Library for writing and manipulating (html) markup in Elixir.

expug - Pug templates for Elixir

exgen - A templating library for generating reusable Elixir projects