Lift-up attribute snippets
Currently for attribute snippets we have:
<div lift.snippet="MySnippet.doWork" />
the caveat is that we cannot really provide default values for attribute and this form does not really conform to the way people invoke snippets from template making this support less known and counter intuitive.
The new form proposed for attribute snippets is:
<div MySnippet.doWork="default values" />
MySnippet = class name
doWork = method name - conforming to MetaData => MetaData type
<div lift.snippet="MySnippet.doWork" />
the caveat is that we cannot really provide default values for attribute and this form does not really conform to the way people invoke snippets from template making this support less known and counter intuitive.
The new form proposed for attribute snippets is:
<div MySnippet.doWork="default values" />
MySnippet = class name
doWork = method name - conforming to MetaData => MetaData type
Leave a comment
on 2010-05-27 10:32 *
By marius.danciu
Assigned to set to marius.danciu
Status changed from New to Accepted