Is there an easy way to include an html snippet in a view, using a variable name?
Eg.: my controller sets a variable q['type']='select' or q['type']='radio' (or any other type of html input).
Can you call the @q['type'] variable in the include statement of the view?
This returns a 500 error:
<include href="{{@q['type']}}.htm" />
I am now using nested check statements in the view and that does the trick but if above code would work I can condense 40 lines to 1 line