Jump to content

Comment out Template code


Recommended Posts

  • 1 year later...

From my experience, the template excutable code surrounded by {{ execute this; }} like the following still gets executed, even while in <!--  -->

Following should be blank, but the template code still execute and will throw an error
<!-- This gets executed
This gets executed {{$var  20;}} and throws the error
Does this print? {$var}
-->

The following will NOT throw an error:

Following should be blank, and is commented out correctly
<!-- This gets executed
This gets executed {{ // $var  20;}} but does NOT throw the error
Does this print? {$var}
-->

Since executable template codes needs to be on one line for each command, is there a fast way to comment out each of these execution lines?

Edited by mcsg
spelling
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...