Last active
February 4, 2016 04:42
-
-
Save dotku/b6cd66ae9e233adf9fbd to your computer and use it in GitHub Desktop.
各框架的默认模板引擎对照表
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
# template-engine-in-projects | |
一般中国的公司都喜欢使用自己开发的模板引擎,而海外的则比较喜欢开源的模板引擎 | |
## Freamworks | |
Laveral - Blade | |
Express - Jade | |
ThinkPHP (Chinese) - ThinkTemplate | |
Ruby on Rails - HAML | |
Ember.js - Handlebars | |
Meteor - Handlebars | |
## Software | |
TRSCMS (Chinese) - TRSXML | |
*/ | |
projects = [ | |
{'name': 'Laveral'}, | |
{'name': 'Express'}, | |
{'name': 'ThinkPHP (Chinese)'}, | |
{'name': 'Ruby on Rails'}, | |
{'name': 'Ember.js'}, | |
{'name': 'Meteor'}, | |
{'name': 'TRSCMS (Chinese)'} | |
]; | |
templates = [ | |
{'name': 'Blade'}, | |
{'name': 'Jade'}, | |
{'name': 'ThinkTemplate'}, | |
{'name': 'HAML'}, | |
{'name': 'Handlebars'} | |
]; | |
match_table = [ | |
{'project': 'Laveral', 'template': 'Blade'} | |
{'project': 'Express', 'template': 'Jade'} | |
{'project': 'ThinkPHP (Chinese)', 'template': 'ThinkTemplate'} | |
{'project': 'Ruby on Rails', 'template': 'HAML'} | |
{'project': 'Ember.js', 'template': 'Handlebars'} | |
{'project': 'Meteor', 'template': 'Handlebars'} | |
{'project': 'TRSCMS (Chinese)', 'template': 'TRSXML'} | |
]; | |
for (let prop in templateMap) { | |
console.log(templateMap[prop]['name'], templateMap[prop]['count']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment