简体   繁体   English

Apache Cordova中的HTML模板?

[英]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. 我目前正在使用Apache Cordova通过Visual Studio开发一个应用程序,我的很多网页非常相似 - 前不久,我使用了Django并找到了它的模板( https://docs.djangoproject.com/en/1.10 / topics / templates / )对这些情况非常有用。 Does Apache Cordova offer and functionality similar to this? Apache Cordova是否提供与此类似的功能? 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. 我正在研究Handlebars.js,但似乎我无法像使用Django模板那样轻松调用整个HTML页面模板。

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.js ,但我知道还有其他 - mustache.jsjQuery模板angularJS Handlebars just happened to be the one I came across first. 车把碰巧是我第一次遇到的那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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