This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/test/support/components
Mitchell Hanberg 265c413960 Allow element attrs to be evaluated at runtime
Before this change, only keyword list literals could be passed to
elements. If they had non-literals as values, then those would compile
to EEx expressions.

This allows a non-literal to be passed as attrs and have the entire thing
compile to an EEx expression, which will pass the non-literal to a
"runtime_attrs" function, which evaluates a keyword list into a safe
string.

That last part might need to be reworked if the user is not using
the Phoenix.HTML.Engine EEx Engine.
2020-08-09 10:07:27 -04:00
..
component.ex Module based Component API 2020-07-24 15:54:38 -04:00
component2.ex Module based Component API 2020-07-24 15:54:38 -04:00
has_temple.ex Module based Component API 2020-07-24 15:54:38 -04:00
has_temple_function_assign.ex Allow element attrs to be evaluated at runtime 2020-08-09 10:07:27 -04:00
inner.ex Module based Component API 2020-07-24 15:54:38 -04:00
outer.ex Module based Component API 2020-07-24 15:54:38 -04:00
section.ex Module based Component API 2020-07-24 15:54:38 -04:00