├── .gitignore
├── .npmignore
├── .travis.yml
├── README.md
├── cjs
├── index.js
├── package.json
├── ucontent.js
└── utils.js
├── esm
├── index.js
├── ucontent.js
└── utils.js
├── package.json
├── test
├── base.js
├── benchmark.js
├── counter-fe.js
├── counter.js
├── index.js
├── package.json
├── pelo-app.js
├── pelo.js
└── view.js
└── ucontent-head.jpg
/.gitignore:
--------------------------------------------------------------------------------
1 | .nyc_output/
2 | node_modules/
3 | package-lock.json
4 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .nyc_output/
2 | node_modules/
3 | rollup/
4 | test/
5 | package-lock.json
6 | uhtml-head.jpg
7 | .travis.yml
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - stable
4 | git:
5 | depth: 1
6 | branches:
7 | only:
8 | - master
9 | after_success:
10 | - "npm run coveralls"
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # µcontent
2 |
3 | [](https://travis-ci.com/WebReflection/ucontent) [](https://coveralls.io/github/WebReflection/ucontent?branch=master)
4 |
5 | 
6 |
7 | **Social Media Photo by [Bonnie Kittle](https://unsplash.com/@bonniekdesign) on [Unsplash](https://unsplash.com/)**
8 |
9 | ### 📣 Community Announcement
10 |
11 | Please ask questions in the [dedicated forum](https://webreflection.boards.net/) to help the community around this project grow ♥
12 |
13 | ---
14 |
15 | A micro **SSR** oriented HTML/SVG content generator, but if you are looking for a micro **FE** content generator, check _[µhtml](https://github.com/WebReflection/uhtml#readme)_ out.
16 |
17 | ```js
18 | const {render, html} = require('ucontent');
19 | const fs = require('fs');
20 |
21 | const stream = fs.createWriteStream('test.html');
22 | stream.once('open', () => {
23 | render(
24 | stream,
25 | html`
It's ${new Date}!
`
26 | ).end();
27 | });
28 | ```
29 |
30 | ### V2 Breaking Change
31 |
32 | The recently introduced `data` helper [could conflict](https://github.com/WebReflection/uhtml/issues/14) with some node such as `