node-riner 1.1.1 → 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.
- package/README.md +28 -0
- package/package.json +1 -1
- package/t.rd +0 -0
- package/t.ts +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Ride Framework
|
|
2
|
+
|
|
3
|
+
XMLファイルをベースに動的なHTMLページを生成し、Expressサーバーとして配信する軽量なSSR(Server-Side Rendering)ユーティリティです。
|
|
4
|
+
|
|
5
|
+
## 📦 インストール
|
|
6
|
+
|
|
7
|
+
プロジェクトのルートディレクトリで以下のコマンドを実行してください。
|
|
8
|
+
|
|
9
|
+
```bash
|
|
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
package/t.rd
ADDED
|
File without changes
|
package/t.ts
ADDED
|
File without changes
|