leaf-me-static:由 PHP Node.js 提供支持的静态站点生成器-源码

上传者: 42107561 | 上传时间: 2021-06-22 11:04:59 | 文件大小: 255KB | 文件类型: ZIP
叶静 Leaf-me-static是一个静态站点生成器,它有PHP版本和Node.js版本。 在服务器端,它生成静态index.html和json文件。 在浏览器端,它基于哈希路由器请求json文件并将数据渲染为HTML。 用法很简单: 运行npm install / composer install安装依赖 编辑config.yaml以编辑您站点的基本信息 运行./new.js Article Title / ./new.php Article Title在文件夹post创建一个新的.md文件 动笔 运行./leaf.js / ./leaf.php生成文件夹data index.html和json文件 全部做完。 发布到云端 演示:

文件下载

资源详情

[{"title":"( 50 个子文件 255KB ) leaf-me-static:由 PHP Node.js 提供支持的静态站点生成器-源码","children":[{"title":"leaf-me-static-master","children":[{"title":"README.md <span style='color:#111;'> 894B </span>","children":null,"spread":false},{"title":"node.js","children":[{"title":".gitignore <span style='color:#111;'> 38B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"2014-10-23-markdown-testing.json <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"posts.json <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"about.json <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"2014-10-23-hello-world-&-leaf-me-static.json <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"util.js <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"index_tmpl.html <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"asset","children":[{"title":"js","children":[{"title":"app.js <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"prism.js <span style='color:#111;'> 7.16KB </span>","children":null,"spread":false},{"title":"json2.js <span style='color:#111;'> 17.16KB </span>","children":null,"spread":false},{"title":"micro-templating.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"leaf.js <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"highlight","children":[{"title":"default.css <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"highlight.pack.js <span style='color:#111;'> 17.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"css","children":[{"title":"style.css <span style='color:#111;'> 5.70KB </span>","children":null,"spread":false},{"title":"font.css <span style='color:#111;'> 163.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"post","children":[{"title":"2014-10-23-hello-world-&-leaf-me-static.md <span style='color:#111;'> 707B </span>","children":null,"spread":false},{"title":"2014-10-23-markdown-testing.md <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"page","children":[{"title":"about.md <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"new.js <span style='color:#111;'> 631B </span>","children":null,"spread":false},{"title":"leaf.js <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"config.yaml <span style='color:#111;'> 134B </span>","children":null,"spread":false}],"spread":false},{"title":"php","children":[{"title":".gitignore <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"2014-10-23-markdown-testing.json <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"posts.json <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"about.json <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"2014-10-23-hello-world-&-leaf-me-static.json <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"util.php <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"index_template.php <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"composer.json <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"asset","children":[{"title":"js","children":[{"title":"app.js <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"json2.js <span style='color:#111;'> 17.16KB </span>","children":null,"spread":false},{"title":"micro-templating.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"leaf.js <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"highlight","children":[{"title":"default.css <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"highlight.pack.js <span style='color:#111;'> 17.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"css","children":[{"title":"style.css <span style='color:#111;'> 5.70KB </span>","children":null,"spread":false},{"title":"font.css <span style='color:#111;'> 163.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"post","children":[{"title":"2014-10-23-hello-world-&-leaf-me-static.md <span style='color:#111;'> 713B </span>","children":null,"spread":false},{"title":"2014-10-23-markdown-testing.md <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"new.php <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"page","children":[{"title":"about.md <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"leaf.php <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"config.yaml <span style='color:#111;'> 146B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明