How to read outside of {% %} using nunjucks parser for creating an extension -


i trying create extension data binding. due unavailability of parse documentation, stuck.

for below syntax, how check/read "type", i.e. how read outside of {% %}.

<input type="text" id="categoryname" {% data-bind "category.name" %}  /> <input type="checkbox" id="categoryistop" {% data-bind "category.istoplevel" %}  /> 

the below syntaxes work fine , use if above not possible.

{% input "id=categoryname, value=category.name, type=text" %} {% input "id=categoryistop, value=category.istoplevel, type=checkbox %}   <input id="categoryname" {% data-bind "text category.name" %}  /> <input id="categoryistop" {% data-bind "checkbox category.istoplevel" %}  /> 


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -