How does the template engine learn?

Source: Internet
Author: User

I haven't seen smarty yet. I've seen a custom template engine that doesn't understand a lot of things. It's too hard to know what it means to learn.
I don't know what that means in this picture.
Why are there curly braces inside the angle brackets and a whole bunch of questions about the picture? Why use regular expressions?

Reply content:

I haven't seen smarty yet. I've seen a custom template engine that doesn't understand a lot of things. It's too hard to know what it means to learn.
I don't know what that means in this picture.
Why are there curly braces inside the angle brackets and a whole bunch of questions about the picture? Why use regular expressions?

I can see the question that the Lord is trapped in Smarty relative to your complex grammatical structure, my advice is:
Do not study too deliberately, you can first contact some frameworks, each mature framework contains the template engine, of course, not necessarily smarty, but you understand the template engine God help! ~

The PHP language itself is a very good template engine!!!

It is not recommended to use a complex template engine such as smarty ...
It's recommended that you go to GitHub and look for some smaller template engines.

This official document must be written, in fact, some specific syntax, most of the framework has, in order to make the code look more concise

The template engine is the abstract view into a template, and then it is based on the incoming data assembled into a view of things, in fact, PHP itself is a template engine, basically all of the template engine is the same, as needed on the line

  • 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.