简体   繁体   中英

HTML Templates in Apache Cordova?

I'm currently developing an app using Apache Cordova via Visual Studio, and a lot of my webpages are very similar - a while ago, I had used Django and found its templates ( https://docs.djangoproject.com/en/1.10/topics/templates/ ) very useful for these situations. Does Apache Cordova offer and functionality similar to this? I was looking into Handlebars.js, but it seems like I cannot easily call an entire HTML page template in the same regard as I could using Django templates.

Cordova isn't really prescriptive in this regard. I'm currently using Handlebars.js in my app ( link ), but I know that there are others -- mustache.js , jQuery template , angularJS . Handlebars just happened to be the one I came across first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM