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 .tpl
Synchronized 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.
.html
The backend was changed to .tpl
Synchronized 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.