0.1.1 • Published 10 years ago

partjs v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago