partjs
modular html solution
Last updated 5 years ago by luizbills .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install partjs -g
SYNC missed versions from official npm registry.

PartJS

a modular html solution

Install

npm i -g partjs

Usage

Example

src/index.html

<body>
  <part name="myElement">Hello World</part>
</body>

part_modules/myElement/part.html

<p> {{ inner }} </p>

{{ inner }} is the innerHTML of element "escaped".

About a part module

myElement/
    part.html
    part.js
    part.css
    part.json

All part.js and part.css are concatenated and build as part.script.js and part.styles.css, respectively.

LICENSE

MIT

Current Tags

  • 0.1.1                                ...           latest (5 years ago)

3 Versions

  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |