Can javascript-gulp have a plugin that outputs the TPL of the Smarty template to HTML?

Source: Internet
Author: User
Tags smarty template

Can gulp have a plugin that outputs the TPL of the Smarty template to HTML?

Development environment:
An old project now to develop a new module, the previous development process is the front end to write the backend to .html .tpl use the Smarty template engine to synchronize rendering.
Problems encountered:
There are a lot of repetitive content that can be traversed with a for loop in a static page, so I want to write it directly at the front end with the TPL. Because it's relatively simple, you want to use
gulp + browserSync + tpl模板引擎 + less。 I have developed this side directly after the package to the backend.
But there is no way to find gulp-jade tools like this that can be tpl escaped html .
It's a bit like Baidu's Fis3-smarty solution. Write the TPL directly and you can start the server locally. But I don't want to use fis3 here.

Reply content:

Can gulp have a plugin that outputs the TPL of the Smarty template to HTML?

Development environment:
An old project now to develop a new module, the previous development process is the front end to write the backend to .html .tpl use the Smarty template engine to synchronize rendering.
Problems encountered:
There are a lot of repetitive content that can be traversed with a for loop in a static page, so I want to write it directly at the front end with the TPL. Because it's relatively simple, you want to use
gulp + browserSync + tpl模板引擎 + less。 I have developed this side directly after the package to the backend.
But there is no way to find gulp-jade tools like this that can be tpl escaped html .
It's a bit like Baidu's Fis3-smarty solution. Write the TPL directly and you can start the server locally. But I don't want to use fis3 here.

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