include tag seem to only be able to be written in a single line.
i was currently refactoring some code by moving common html patterns like btns and links to partials and using include to add it to templates.
sometimes the partials will take many variables and include being only single line makes it hard to read the code.
since include couldn't take dynamic values from context anyway, i was solving this by using the with tag to wrap the include.
allowing include to be multiline would just make the code simpler.
if you find it's reasonable, i can try to make it work and make a PR.
includetag seem to only be able to be written in a single line.i was currently refactoring some code by moving common html patterns like btns and links to partials and using
includeto add it to templates.sometimes the partials will take many variables and
includebeing only single line makes it hard to read the code.since
includecouldn't take dynamic values from context anyway, i was solving this by using thewithtag to wrap theinclude.allowing
includeto be multiline would just make the code simpler.if you find it's reasonable, i can try to make it work and make a PR.