{"id":22433677,"url":"https://github.com/gavinning/fis-parser-jade-runtime","last_synced_at":"2025-03-27T07:45:48.643Z","repository":{"id":33608777,"uuid":"37260960","full_name":"gavinning/fis-parser-jade-runtime","owner":"gavinning","description":"编译jade模板文件为浏览器客户端支持的js模板文件，依赖jade提供的runtime.js","archived":false,"fork":false,"pushed_at":"2015-06-26T12:29:09.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T17:18:39.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavinning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-11T12:55:27.000Z","updated_at":"2016-07-10T03:19:43.000Z","dependencies_parsed_at":"2022-09-12T21:14:28.203Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/fis-parser-jade-runtime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffis-parser-jade-runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffis-parser-jade-runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffis-parser-jade-runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffis-parser-jade-runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/fis-parser-jade-runtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806390,"owners_count":20675296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T22:15:38.194Z","updated_at":"2025-03-27T07:45:48.621Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis-parser-replace-path\n\n----\n[jade on github](https://github.com/visionmedia/jade) \n\n[jade api](http://jade-lang.com/api/)\n\n[jade中文教程](https://github.com/visionmedia/jade/blob/master/Readme_zh-cn.md)\n\n本插件会将jade模板文件编译成浏览器客户端支持的模板js文件，依赖jade提供的 [runtime](https://github.com/visionmedia/jade/blob/master/runtime.js) 文件，并根据配置决定是否包装amd模块化代码\n\n\n```\nnpm i fis-parser-jade-runtime -g\n```\n\n\n```\nfis.config.merge({\n    pack:{\n        // 合并模板文件\n        '/static/tpl.js': /\\/widget\\/(.*)\\.(jade)$/i\n    },\n    ext: {\n        jade: 'jade'\n    },\n    modules: {\n        parser: {\n            jade: 'jade-runtime'\n        }\n    },\n    roadmap: {\n        path: [\n            {\n                // 指定目录下的jade文件\n                reg: /\\/widget\\/(.*)\\.(jade)$/i,\n                // 标记类js文件\n                isJsLike: true,\n                // 是组件化的，会被jswrapper包装\n                isMod: true,\n                // id是标准路径，防止和js文件冲突\n                id: '$\u0026',\n                // 可以自行配置发布路径，也可以注释掉不发布只合并\n                release: '${statics}/$\u0026'\n            }\n        ]\n    }\n})\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Ffis-parser-jade-runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Ffis-parser-jade-runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Ffis-parser-jade-runtime/lists"}