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 - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -