| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
10年前发布

Java 8 + Nashorn Scripting + Mustache = 静态页面生成器

SPG 是一个静态页面生成器,采用JavaScript开发,作为一个在Java8上可执行的脚本。SPG只有一个文件,带一个JavaScript依赖 (mustache.js),并且只需要你的系统安装有 Java 8 。

SPG is simple: input.json + input.htm (processed by https://github.com/janl/mustache.js template) => input.htm (result).

SPG relies on mustache.js for rendering and therefore comes with support for sections, functions, conditional rendering etc.

SPG was created to maintain the registration pages for http://workshops.adam-bien.com (externalize the dates, show badges like "registration closed"), so it is heavily used in production :-).

You will find sources at github. SPG is open source and Apache 2 licensed.

See you at Java EE Workshops at MUC Airport. SPG is going to be discussed during the Java EE 7 + HTML 5 workshop.

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1413336482356.html
静态页面生成器 建站系统CMS