slam-js:一个用于在服务器端生成静态HTML的Javascript库

上传者: 42117032 | 上传时间: 2023-01-07 16:07:16 | 文件大小: 58KB | 文件类型: ZIP
Slam-js 一个用于在服务器端生成静态HTML的Javascript库。 Slam-js旨在完全替代HTML模板引擎,例如 , 或 。 特征 简单的模板 基于组件 无需学习新的语言/语法 准确的类型声明 令人印象深刻的性能和速度 SVG标签支持。 安装 npm install -D slam-js 程式码范例 在此示例中,函数Document返回一个基于使用的标记函数构造的字符串。 import { html , head , title , meta , link , body , h1 , p } from "slam-js" ; const Document = ( ) => { return html ( { lang : "en" } , head ( title ( "Jordan Latimer" ) , meta ( {

文件下载

资源详情

[{"title":"( 52 个子文件 58KB ) slam-js:一个用于在服务器端生成静态HTML的Javascript库","children":[{"title":"slam-js-main","children":[{"title":".gitignore <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1010B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 45.27KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"cssBuilder.ts <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"svgInterfaces.ts <span style='color:#111;'> 19.15KB </span>","children":null,"spread":false},{"title":"cssReset.ts <span style='color:#111;'> 803B </span>","children":null,"spread":false},{"title":"server.ts <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"slamInterfaces.ts <span style='color:#111;'> 813B </span>","children":null,"spread":false},{"title":"htmlInterfaces.ts <span style='color:#111;'> 14.75KB </span>","children":null,"spread":false},{"title":"builders.ts <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"tagNames.ts <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"utils.ts <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"elementFunctions.ts <span style='color:#111;'> 40.53KB </span>","children":null,"spread":false}],"spread":false},{"title":"dist","children":[{"title":"cssReset.d.ts <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"utils.d.ts <span style='color:#111;'> 565B </span>","children":null,"spread":false},{"title":"cssBuilder.d.ts <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"htmlInterfaces.d.ts <span style='color:#111;'> 14.91KB </span>","children":null,"spread":false},{"title":"server.d.ts <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"elementFunctions.js <span style='color:#111;'> 47.41KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"slamInterfaces.js <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"svgInterfaces.d.ts <span style='color:#111;'> 19.18KB </span>","children":null,"spread":false},{"title":"utils.js <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"builders.js <span style='color:#111;'> 9.25KB </span>","children":null,"spread":false},{"title":"tagNames.d.ts <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"htmlInterfaces.js <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"svgInterfaces.js <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"builders.d.ts <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"slamInterfaces.d.ts <span style='color:#111;'> 874B </span>","children":null,"spread":false},{"title":"cssBuilder.js <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"tagNames.js <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"cssReset.js <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"server.js <span style='color:#111;'> 9.30KB </span>","children":null,"spread":false},{"title":"elementFunctions.d.ts <span style='color:#111;'> 19.80KB </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 218B </span>","children":null,"spread":false}],"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":".prettierignore <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"tools","children":[{"title":"elements.js <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"functionGenerator.js <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"builder.js <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"output","children":[{"title":"about.css <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"about.html <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"index.css <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"about.js <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"pages","children":[{"title":"components","children":[{"title":"Box.ts <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"home.ts <span style='color:#111;'> 359B </span>","children":null,"spread":false}],"spread":true},{"title":"server.js <span style='color:#111;'> 279B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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