Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

adding a especial attribute _dynamic #65

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

rhuelga commented May 5, 2012

for example using it one can make options be selected or not dynamically by this way:

  • var dyn = { selected:'selected', checked: false }
    %option{value:"spain", _dynamic:dyn}
    some text

will produce

some text
Adding dynamic attributes to tags by using a especial attribute _dynamic
using it one can make options be selected or not by this way:

- var dyn = { selected:'selected', checked: false }
%option{value:"spain", _dynamic:dyn}
  some text

will produce

<option value="spain" selected="selected">some text</option>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment