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.