rjs jade RequireJS的Jade插件
rjs-玉将jade js api提供到RequireJS环境中。玉版:0.8.0安装(鲍尔) bower install -- save rjs - jade配置trequirejs . config ( { tt'paths' : { ttt'jade' : 'lib/jade' tt} ) ;示例1 define ( function ( require , exports , module ) { tvar jade = require ( 'jade' ) ; tvar angular = require ( 'angular' ) ; tvar headerTitle = require ( './config' ) . headerTitle ; tvar tpl = jade . compile ( 'h1 #{title}' ) ;
用户评论