How does one make smarty not interpret some code in the template? The template code is as follows: & lt ;! -- % APPSTORE_START % -- & gt; & lt ;! -- Application content area starts -- & gt; & lt; div & nbsp; class = "mod_cnt" & gt; test123 & lt; /How does div & g make smarty not interpret some code in the template?
The template code is as follows:
Test123
The code displayed after the smarty compilation is as follows:
Test123
Other contents are missing. {Literal} {/literal} has been tried, but does not work.
I wanted to output the following code:
Test123
Hope to teach!
------ Solution --------------------
Your It's an html comment. of course, the comment is invisible on the page.
It has nothing to do with smarty
------ Solution --------------------
That is the comment part. you can view the source code.
------ Solution --------------------
I have never heard that smarty will be rewritten. Meaning
------ Solution --------------------
Even if you reset left_delimiter right_delimiter The content is not displayed in html code.
------ Solution --------------------
Post your PHP code, including re-defining attributes in Smarty
This is definitely a problem with your program. it has nothing to do with Smarty.
------ Solution --------------------
{Literal}
{/Literal}
What does LZ mean ?? Do not explain the intermediate code, such as JS code
------ Solution --------------------
{* Comment *}
------ Solution --------------------
Literal is not parse braces
{Ldelim} output left and right braces {rdelim}
------ Solution --------------------
{Literal} code
{/Literal}
You can skip the intermediate code!
Good luck!