GenericJam

GenericJam

Mob 0.7.12 released!

Mob 0.7.12 has been released.

Fixed

  • ~MOB now raises a clear error when @foo is used without assigns in
    scope.
    The @fooassigns.foo shorthand (0.7.11) only works inside a
    render(assigns); used in an ordinary helper function (positional args — the
    idiomatic composite pattern) it compiled to a cryptic “undefined variable
    assigns”. The sigil now guards with Macro.Env.has_var?(caller, {:assigns, nil}) (the same check Phoenix’s ~H uses) and raises a CompileError naming
    the fix ({title} instead of @title). Only @-using templates trigger it —
    a static ~MOB(<Text text="hi"/>) in a positional-arg helper still compiles.
    (MOB-5, #56)

Documentation

  • Worked component-authoring examples in the Components guide. The
    “Defining your own components” section now carries two complete, runnable
    screens — a function composite and a tag composite — spelling out the
    tag→atom rule and where on_* event-target auto-injection applies (a
    composite tag’s own props vs a plain widget in its children). The @assigns
    section documents that @foo only works where assigns is in scope and
    steers helpers to positional {var}. (#56, #57)

Where Next?

Popular in News & Updates Top

fhunleth
We recently released Nerves 1.4.0 and an update to the Nerves new project generator, nerves_bootstrap. The biggest change is support for ...
New
fhunleth
We recently released Nerves 1.6 and corresponding updates to the Nerves new project generator, nerves_bootstrap and our official systems....
New
josevalim
Hi everyone, just a heads up that we announced https://livebook.dev, a website for everyone to learn more about Livebook. One of the coo...
New
zachdaniel
Hey folks! We’ve just released the beta 0.1.0 version of ash_sqlite. Take a look at the guide here: https://hexdocs.pm/ash_sqlite/get-sta...
New
zachdaniel
Just released: Ash AI, a new extension for Ash Framework. LLM integration for Elixir apps. Use Ash’s declarative approach for structured ...
New
bartblast
Hologram v0.6.0 is here, bringing production-ready features to the full-stack Elixir web framework! This release focuses on enhanced secu...
New
bartblast
Great news for Hologram: the Erlang Ecosystem Foundation has awarded a stipend to support key development milestones! I’m deeply gratefu...
New

Other popular topics Top

ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement