Theme 是为 Express 等 MVC 设计的一个主题管理工具,theme 的思想很简单,就是将主题当做 npm 模块进行管理,安装,渲染等等操作。一个开源项目的主题市场可以很方便的寄生在 npm 市场上,开发者不需要徒增认知成本,即可使用方便的 npm 管理自己所发布的主题。
theme 依赖 pkghub,pkghub 和 pkghub-render 使用 npm 接口进行模块搜索,然后匹配相应的主题进行渲染,并辅助将主题的静态资源链接到公共目录。
使用 theme 可以非常方便的管理项目中的不同主题,目前已经在 candy 0.1.7 的不稳定版本中正常使用,详细的用法,可以看 candy 仓库中路由文件夹下的代码。
欢迎 star && fork
https://github.com/turingou/theme
从市场安装:
$ npm install theme
candy 仓库:
https://github.com/turingou/candy
使用 theme 加载的 candy 默认主题:
https://github.com/turingou/candy-theme-flat
theme 依赖 pkghub,pkghub 和 pkghub-render 使用 npm 接口进行模块搜索,然后匹配相应的主题进行渲染,并辅助将主题的静态资源链接到公共目录。
使用 theme 可以非常方便的管理项目中的不同主题,目前已经在 candy 0.1.7 的不稳定版本中正常使用,详细的用法,可以看 candy 仓库中路由文件夹下的代码。
欢迎 star && fork
https://github.com/turingou/theme
从市场安装:
$ npm install theme
candy 仓库:
https://github.com/turingou/candy
使用 theme 加载的 candy 默认主题:
https://github.com/turingou/candy-theme-flat