Smarty-Kommentar

Hallo,

in einem Template *.tp können Kommentare wie folgt geschrieben werden:

[{*  Smarty-Comment that is not sent to the browser  *}]
<!-- HTML-comment that is sent to the browser   -->

Wie kann ich einen ganzen Block auskommentieren, der ebenfalls Smarty-Comments enthält und später nicht im HTML zusehen sein soll?

Beispiel:

[{*  Smarty-Comment[{*  that *}] is not sent to the browser  *}]

Wie ist die korrekte Syntax zum Beispiel?

Schon mal vielen Dank!

so direkt auskommentieren geht nicht, aber folgendes funktioniert:

[{if false}]  Smarty-Comment[{*  that *}] is not sent to the browser  [{/if}]

oder auch

[{if false}] [{*  Smarty-Comment[{*  that *}] is not sent to the browser  *}] [{/if}]

Hi,

sehr gut. Vielen Dank für den Tipp!