How do I make smarty not explain part of the code in the template?
The template code is as follows:
Test123
After Smarty compiled the display code is as follows:
Test123
The rest of the content is gone. An attempt was made to use {literal}{/literal}, but it has no effect.
I would like to complete the output of the following code:
Test123
Hope Master Advice!
------Solution--------------------
Yours It's an HTML comment, and of course it's not visible on the page.
It doesn't matter to smarty.
<!--%appstore_start%-->
------Solution--------------------
That's the comment section, and you can see the source code.
------Solution--------------------
Never heard that Smarty would rewrite. The meaning
------Solution--------------------
Even if you re-set Left_delimiter Right_delimiter, it's not going to make The content between is not displayed in the HTML code.
------Solution--------------------
Post your PHP code, including the redefinition of attributes in Smarty
This problem is definitely a matter of your program, and Smarty itself.
------Solution--------------------
{literal}
{/literal}
LZ said that is the meaning?? Don't explain the middle code like JS code
------Solution--------------------
{* Comment *}
------Solution--------------------
Literal is not parse curly braces
{Ldelim} output left and right curly braces {Rdelim}
------Solution--------------------
{literal} code
{/literal}
The middle code will not be explained!
Good luck!