How to make smarty not interpret some code in the template

Source: Internet
Author: User
Tags html comment
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.