How to make Smarty not interpret part of the code in the template

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

    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.