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

mobileoverlord
Action Advised: NervesHub Sunset In 2018, NervesHub was launched to deliver first-class support for hardware deployments directly from th...
New
hugobarauna
Discover Livebook 0.9’s new security features, including Hubs for centralized secret management, notebook stamping, and a sneak peek into...
New
mickel8
Hello everyone! :wave: I am thrilled to announce a new version of Jellyfish Media Server - v0.2.0! :tada: Features: Added RTSP compon...
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
Join us for our first Ash Office Hours next Thursday at 6PM EST! Myself and anyone from the core team who can make it will be answering q...
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
zhenfeng-zhu
Nex - A minimalist web framework for indie hackers and startups A Note Before We Begin This document records my thoughts during the dev...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement