-
Notifications
You must be signed in to change notification settings - Fork 0
/
System.html
211 lines (166 loc) · 8.97 KB
/
System.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="main.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
<link rel="stylesheet" href="/bulma.min.css">
<script type="text/javascript" src="/main.js"></script>
<link rel="stylesheet" href="/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="crossorigin">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@500&family=Noto+Sans+Mono:wght@500&family=Noto+Sans:wght@500&display=swap" rel="stylesheet">
<meta name="description" content="System of Rino
Whole Structure
Preprocess the project files
-> static files or data
-> Rinokit componets and data during runtime
Instead of pro" />
<meta name="og:title" content="System" />
<meta name="og:description" content="System of Rino
Whole Structure
Preprocess the project files
-> static files or data
-> Rinokit componets and data during runtime
Instead of pro" />
<meta name="og:site_name" content="Rino" />
<meta name="og:url" content="https://rinojs.org/System.html" />
<meta name="og:image" content=""/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>System</title>
</head>
<body>
<div class="mainview columns">
<div class="column" id="sidebar">
<img src="/assets/rino256.png" alt="Rino Logo">
<aside class="menu">
<p class="menu-label">
Main
</p>
<ul class="menu-list">
<li><a href="/">Home</a></li>
<li><a href="/Shop.html">Shop</a></li>
<li><a href="/Support us.html">Support us</a></li>
<li><a href="/Get Help.html">Get Help</a></li>
</ul>
<p class="menu-label">
Getting Started
</p>
<ul class="menu-list">
<li><a href="/Introduction.html">Introduction</a></li>
<li><a href="/Installation.html">Installation</a></li>
<li><a href="/System.html">System</a></li>
</ul>
<p class="menu-label">
Rino
</p>
<ul class="menu-list">
<li><a href="/Page.html">Page</a></li>
<li><a href="/@component.html">@component</a></li>
<li><a href="/@props.html">@props</a></li>
<li><a href="/@preload.html">@preload</a></li>
<li><a href="/@data.html">@data</a></li>
<li><a href="/@tot.html">@tot</a></li>
<li><a href="/@md.html">@md</a></li>
<li><a href="/Inner Data.html">Inner Data</a></li>
<li><a href="/Coding.html">Coding</a></li>
<li><a href="/Comment.html">Comment</a></li>
<li><a href="/Escape.html">Escape</a></li>
<li><a href="/Rino API.html">Rino API</a></li>
</ul>
<p class="menu-label">
Rinokit
</p>
<ul class="menu-list">
<li><a href="/Rinokit.html">Rinokit</a></li>
<li><a href="/Component.html">Component</a></li>
<li><a href="/Data.html">Data</a></li>
<li><a href="/Rinokit API.html">Rinokit API</a></li>
</ul>
<p class="menu-label">
Extra
</p>
<ul class="menu-list">
<li><a href="/@event.html">@event</a></li>
</ul>
</aside>
</div>
<div id="cover" onclick="showSidebar()">
</div>
<main class="column">
<div class="header columns">
<div class="column">
<a role="button" id="menu-button" class="menu-button" onclick="showSidebar()">
<span></span>
<span></span>
<span></span>
</a>
</div>
<div class="select">
<select onchange="if(this.value) location.href=(this.value);">
<option value="" selected="selected" disabled="disabled" hidden="hidden">
Language
</option>
<option value="/">English</option>
<option value="/ko/">한국어</option>
</select>
</div>
</div>
<hr>
<h1>System of Rino</h1>
<h2>Whole Structure</h2>
<pre><code>Preprocess the project files
-> static files or data
-> Rinokit componets and data during runtime
</code></pre>
<p><br>Instead of processing everything in the webpage, It is more efficient that we divide them into the things that need to be preprocessed and processed from client side.</p>
<h2>Preprocessing strucutre</h2>
<pre><code>Going through pages one by one
-> Syntax in a page in order
-> Syntax from Syntax(file or object) from page
-> Syntax from Syntax(file or object) if they have depth like @component
</code></pre>
<p>Rino preprocess files based on syntax in <code><d:html></d:html></code>. And preprocessing system follows the order of where the syntax is placed.</p>
<p>Preload files will be placed at the top of the javascript and css files.
Then components for client side will be placed. The last part will be the preprocessed components and pages.</p>
<p>Some syntax, they are applied in the order: <code>@data, @tot</code>. You can try to do something with it. But it may not be safe because it is not like there's a rule <code>@data</code> or any others should be applied first.</p>
<h2>Dev() Directory Structrue and System</h2>
<pre><code>Project/src/index.js
Project/src/pages.js
Project/src/pages/
Project/src/components/
Project/src/preloads/
Project/src/tots/
Project/src/mds/
Project/public/
Project/dist/
</code></pre>
<p>It is totally up to you how you setup your project. But it is recommended to put everything well organized, just like the structure above.</p>
<p><code>Project/src/index.js</code> is where you load <code>Project/src/pages.js</code> and run the code.</p>
<p><code>Project/src/pages.js</code> is where you setup pages and run some code that you need.</p>
<p><code>Project/src/pages/</code> is where you store .tot files for pages</p>
<p><code>Project/src/components/</code> is where you store .tot files for preprocessed components</p>
<p><code>Project/src/preloads/</code> is where you store .tot files for preloading.</p>
<p><code>Project/src/tots/</code> is where you store .tot files for content and data storage. You can setup multilingual support using this.</p>
<p><code>Project/src/mds/</code> is where you store .md files for content. You can setup multilingual support using this.</p>
<p><code>Project/public/</code> is where you store asset files. They are going to be copied into <code>Project/dist/.</code> Rino use algorithm for checking when the files are updated. So it is quite efficient and fast enough.</p>
<p><code>Project/dist/</code> is where Rino is going to put the result of development.</p>
<h2>Extra stuffs</h2>
<p>If there's Rino syntax in <code>@props</code>, <code>@data</code> and <code>@tot</code>. They are going to be rendered. So you better use HTML entities if that's not what you want.</p>
<p>Anything that is preprocessed start with <code>@</code>. Runtime component is also actually preprocessed as well, but it is just a rule for where they are more used for building a page. This rule has made because we are going to support runtime tools in the future.</p>
<p>It is good to understand <a href="https://github.com/opdev1004/totjs">Tot</a>. Because you can do many things with it. Tot is a good IO handler.</p>
<hr>
<div class="rino-footer">
<p>Built with <strong>Free, MIT licensed opensource project</strong> <a href="https://github.com/rinojs/rinojs" target="_blank"><strong>Rino</strong></a> and <a href="https://github.com/rinojs/rinodocs" target="_blank"><strong>Rinodocs</strong></a></p>
<a href="https://rinojs.org/" target="_blank">Rino Document</a> |
<a href="https://github.com/rinojs/rinojs" target="_blank">Rino Github</a> |
<a href="https://rinojs.org/sponsor.html" target="_blank">Rino Sponsor</a> |
<a href="https://rinojs.org/shop.html" target="_blank">Rino Shop</a> |
<a href="https://www.npmjs.com/package/rinojs" target="_blank">NPM</a>
</div>
</main>
</div>
</body>
</html>