Home  >  Article  >  Backend Development  >  javascript - Is there a plug-in for gulp to output the tpl of smarty templates into html?

javascript - Is there a plug-in for gulp to output the tpl of smarty templates into html?

WBOY
WBOYOriginal
2016-12-01 00:56:441335browse

Is there a plug-in for gulp to output the tpl of the smarty template into html?

Development environment:
An old project now needs to develop a new module. The previous development process was written on the front end .htmlThe backend was changed to .tplSynchronized rendering using smarty template engine.
Problems encountered:
There are a lot of repeated content in the static page that can be traversed using a for loop, so I want to write it directly in tpl on the front end. Because it is relatively simple, I want to use
gulp + browserSync + tpl template engine + less. After I develop it here, I package it directly and send it to the backend.
But I haven’t found a tool like gulp-jade that can escape tpl into html, which is a bit similar to Baidu’s FIS3-smarty solution. Simply write the tpl and start the server locally to use it. But I don’t want to use fis3 here.

Reply content:

Is there a plug-in for gulp to output the tpl of the smarty template into html?

Development environment:

An old project now needs to develop a new module. The previous development process was written on the front end

.html
The backend was changed to .tplSynchronized rendering using smarty template engine. Problems encountered: There are a lot of repeated content in the static page that can be traversed using a for loop, so I want to write it directly in tpl on the front end. Because it is relatively simple, I want to use

gulp + browserSync + tpl template engine + less
. After I develop it here, I package it directly and send it to the backend. But I haven’t found a tool like
gulp-jade that can escape tpl into html, which is a bit similar to Baidu’s FIS3-smarty solution. Simply write the tpl and start the server locally to use it. But I don’t want to use fis3 here.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn