/**
* Created by Answer1215 on 11/15/2014.
*/
module.exports = function(grunt){
grunt.initConfig({
files: ["'js'", "html"],
compile: "<%- files %>" //encoding charater
}); //compile: "<%= files %>" //no encoding grunt.registerTask("default", function(){
grunt.log.writeln(grunt.config.get("compile")); //js, html
grunt.log.writeln(grunt.template.process("<%= files %>")); //js.html
grunt.log.writeln(grunt.template.today('yyyy-mm-dd')); //2014-11-15
});
}

Template strings can be processed manually using the provided template functions. In addition, the config.get method (used by many tasks) automatically expands <% %> style template strings specified as config data inside the Gruntfile.

Read More:  http://gruntjs.com/api/grunt.template

最新文章

  1. 如何用注解简化SSH框架
  2. ObjectOutputStream和ObjectInputStream
  3. Oracle题目
  4. Objective C 基础
  5. 项目经理PPT演讲意见
  6. 【Xamarin开发 Android 系列 4】 Android 基础知识
  7. php中文字符串反转
  8. NYOJ 16 矩形嵌套(动态规划)
  9. 分治法求一个N个元素数组的逆序数
  10. openssl 生成CSR
  11. 根据源码用HttpServletRequest获取MultipartFile的问题
  12. framework7 入门(基础布局)
  13. SQL Server捕获发生The query processor ran out of internal resources and could not produce a query plan...错误的SQL语句
  14. 接口自动化测试持续集成--SoapUI安装
  15. Java2E中的路径问题
  16. css &amp; clearfix &amp; clear-fixed
  17. 全网最详细的Windows系统里PLSQL Developer 64bit的下载与安装过程(图文详解)
  18. Androidpn 简单实现及分析
  19. Python学习笔记系列——数据结构相关
  20. asp.net菜鸟到中级程序员的飞跃 --30本好书点评

热门文章

  1. java 数组的基本概念
  2. Android之 内容提供器(2)——创建自己的内容提供器将数据共享出去
  3. Windows 消息循环(2) - WPF中的消息循环
  4. hdu 1372Knight Moves
  5. aiohttp
  6. 【51Nod 1756】【算法马拉松 23】谷歌的恐龙
  7. hdu 3681 压缩dp+搜索
  8. Makefile-命令前的@和-符号
  9. phpRedis函数使用总结
  10. HBase EndPoint加载失败