Question about basic template syntax.

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
User avatar
Registered User
Posts: 155
Joined: Fri Oct 11, 2019 1:59 am

Re: Question about basic template syntax.

Post by Gumboots » Mon Oct 14, 2019 12:17 am

eeji wrote:
Sun Oct 13, 2019 4:14 pm
The simple answer to your original question is regular HTML comments will be rendered in the source and be viewable by anyone.

By using a false condition the template engine won't render the comment.
Ok, that's a good point. I can see the value in that.

3Di wrote:
Sun Oct 13, 2019 7:03 pm
Same if you use Twig comments.

{# my awesome comment is not rendered #}
I can just tell you're trying to get me into using mixed syntax. :lol: It might even work. A comment in that syntax is less typing than a false conditional in the old syntax, and I've already said I'm lazy like that.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”