-
Notifications
You must be signed in to change notification settings - Fork 1
Tags Comment
Q edited this page Dec 13, 2020
·
4 revisions
Comment tag also accept flags, and have three possible use-cases.
Willow Comments use the following format:
{! comment !}
HTML comments renderer inline in the output HTML document
{! [html] This is an HTML comment !}
Returns:
<!-- This is an HTML comment -->
PHP comments are printed to the PHP debug log, if certain debugging settings conditions are met, if not, they are discarded and removed from the output HTML
{! [php] This is a PHP comment !}
Returns nothing
Willow comments are not rendered to HTML or echoed in PHP logs, they are simply used to leave comments in templates.
{! This is an Willow comment !}
Returns nothing
Comments can also be used with multiple flags, the following example would both render an HTML comment and also write to the PHP log file:
{! [html, php] This is an HTML and PHP comment !}
Returns:
<!-- This is an HTML and PHP comment -->