node-riner 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,4 +7,22 @@ XMLファイルをベースに動的なHTMLページを生成し、Expressサー
7
7
  プロジェクトのルートディレクトリで以下のコマンドを実行してください。
8
8
 
9
9
  ```bash
10
- npm i node-riner@latest
10
+ npm i node-riner@latest
11
+ ```
12
+ ## Example
13
+ index.rd
14
+ ``` RideFrameworks
15
+ <Root>
16
+ <Page route="/">
17
+ <h1>hello world</h1>
18
+ </Page>
19
+ </Root>
20
+ ```
21
+ main.ts
22
+ ```
23
+ import Riner from 'node-riner'
24
+
25
+ let App = new Riner("my app")
26
+ App.Ride("index.rd")
27
+ App.serve(3000)
28
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-riner",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",