Closed CrowdHailer closed 5 years ago
Don't use @variable in templates. Raxx.View lets you choose your own variable.
@variable
Add a page variable for the layout.
I think a simplish trick with bindings will allows us to have a default value in that page variable.
page = Keyword.get(bindings, :page, :default)
https://github.com/CrowdHailer/raxx/pull/180
Raxx.View directly supports optional arguments now
Don't use
@variable
in templates. Raxx.View lets you choose your own variable.Add a page variable for the layout.
I think a simplish trick with bindings will allows us to have a default value in that page variable.
page = Keyword.get(bindings, :page, :default)