olafura
This is just for people to test out to give feedback it’s working but the documentation needs to be improved.
Here you can mess around with this example:
https://github.com/fireblast-ui/fireblast_example
Main git repo
https://github.com/fireblast-ui/fireblast
I’m working on a couple of thing at the moment:
Looking at integrating it well with Live view
Implementing a css parser so we can something akin or styled components
Trans tag which would be use gettext, probably similar to js lingui
Still tweaking the logo
and will hopefully have a simple website up soon.
Trending in Announcing
WebAuthnLiveComponent WebAuthnComponents
See this post about renaming the package.
Passwordless authentication for Phoenix LiveView app...
New
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
I released Doggo, a collection of unstyled Phoenix components.
https://github.com/woylie/doggo
Features
Unstyled Phoenix components....
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hi everyone,
I’ve been working on this protobuf library for 3 years. We use it in the company I work for, EasyMile, to communicate with ...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
I’ll shortly be launching Text, a nascent text analysis library.
Current functionality
In this early version (not ready for prime time) ...
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
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Hey folks,
I just published a post about Hologram’s funding and where the project goes next - the short version:
Curiosum as Main Spons...
New
:microphone: ElixirConf 2026 - Call for Talks is open!
We’re heading to Chicago :united_states:
:round_pushpin: In person + virtual
:d...
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
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hauleth
Nice, but I am still trying to grasp what is the difference between this and regular EEx? You mean the fact that you provide
sigil_x?olafura
So EEx is a string template language. Phoenix adds some html related things on top of it.
There are also great engines for different templating formats.
If you know and like templating you probably don’t get a lot of value out of Fireblast.
But the reality is that more people know React than templating languages at this point. That might change.
If you do know React you know how easy it is to create reusable components that is what I’m trying to imitate.
Example:
Phoenix:
<a href="<%= Routes.page_path(@conn, :index) %>">Link back to this page</a>Fireblast would be:
<Link to="index" conn=${conn}>Link back to this page</Link>So instead of spawning a node process to render React for templating you can possibly use Fireblast
peerreynders
The question is - how does the React component model (or its JSX representation) apply in this particular context - other than appealing to developers who are already familiar with it (for better or worse)?
My point isn’t to critique your contribution - thumbs up for sharing - but to encourage thinking (and perhaps develop a more compelling rationale for somebody to use this).
React and Redux reference Elm as prior art.
Interestingly I’ve never found a reaction by the React community to the conclusion of the Elm community that the component model does not work in a single source of truth architecture.
Richard Feldman came from React and reports on components not scaling well in Elm Europe 2017 - Scaling Elm Apps. He reports that the component approach introduced too much accidental complexity over an approach that managed the
model,view, andupdateaspects separately. It roughly focuses on “narrowing types” on the inputs of the constituent functions that comprise the model update and view render in order to limit the complexity of each constituent function to make everything easier to reason about.By contrast in React/Redux a component often has to rifle around in the whole application model to get the information it needs (and therefore is coupled to the model’s layout), pay attention to the props that are handed down by the parent component, possibly use some of the (function) props to affect the local (i.e. non-centralized) state of any of it’s ancestor components, or even receive child components (render props/component injection).
To the benefit of reuse:
The Rules of Three originated from Biggerstaff and Richter in 1987:
And just another opinion:
Often the component mindset goes hand-in-hand with the OO mindset.
I understand that we all like the idea of components but optimal boundaries tend to be much more complicated than that.
olafura
So I don’t really have to worry about that as much in Fireblast because I’m doing all the processing at compile time. So we have the same iolists as with regular Phoenix. Though they are split up more probably. I can do some benchmarking on it just to make sure I’m not doing anything dumb.
Fireblast is only the JSX part really at this stage. With integration into Phoenix Live it would become closer to React.
I’ll definitely look at the links you provided because we don’t want to repeat the same mistakes.
olafura
The good thing about announcing a project is that you feel guilty for things you haven’t done yet but think have to be done.
One of those things was a basic escaping of variable data passed into the component so people can’t just inject what ever into it. Now with the help of Phoenix.HTML I have a version out.
hauleth
I do not quite get what you are saying there. Phoenix views have some magic behind to generate functions, but in general Your example can be written as:
Or any other function, as what you call “Phoenix templates” are just functions, exactly like React
renderfunctions, with only one main difference - as Elixir is compiled language these functions can be generated during compile-time from external text files. So while I see it as a nice learning project I do not really get what is the improvement there.olafura
Of course you can use what ever module in the
<%= %>and you can even userender(YourApp.UserView, "index.html", name: "John<br/>Doe")in there.But it’s just about how easy it is to read the.
You can use
~Eand~ebut they don’t accept#{}So things like:
Is really hard to replicate just with sigils, you can use the EEx do get the same effect.
It just has to do with familiarity. Vuejs look really different from React but at some level they are doing the same things. But in our case we are actually getting the same result because we don’t have to contend with a javascript rendering part.
There are going to be case where I would have a clear win over Phoenix templates. That is with something like a Trans tag.
Would get translated into
Compared to having to do that manually for Phoenix templates.
Now I just have to finish my implementation of Trans
. It’s not that hard given what I have access to I just have to do it.
LostKobrakai
I’m not sure why one would need react inspired syntax to create a macro, which translates eex content into a call to gettext. It could just as well be a macro
transcalled like that:olafura
That is a pretty good suggestion. I’ll probably implement something like that a long side my implementation of Trans so people that prefer templating also get something
hauleth
It is not that hard:
You cannot use
#{}in~Eas these are expanded in compile time, but you can always use<%= %>.