Skip to content

Commit

Permalink
deploy: 9a27d30
Browse files Browse the repository at this point in the history
  • Loading branch information
georgelemon committed Mar 17, 2024
1 parent eba7bcd commit 9c54fa7
Show file tree
Hide file tree
Showing 13 changed files with 165 additions and 112 deletions.
23 changes: 20 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ <h1 class="title">tim</h1>
global, local = newJObject()): string">render(engine: TimEngine; viewName: string; layoutName = defaultLayout;
global, local = newJObject()): string</a></li>

</ul>
<ul class="simple nested-toc-section">toHtml
<li><a class="reference" href="#toHtml%2Cstring%2Cstring" title="toHtml(name, code: string): string">toHtml(name, code: string): string</a></li>

</ul>

</ul>
Expand Down Expand Up @@ -161,8 +165,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div id="render-procs-all">
<div id="render,TimEngine,string">
<dt><pre><span class="Keyword">proc</span> <a href="#render%2CTimEngine%2Cstring"><span class="Identifier">render</span></a><span class="Other">(</span><span class="Identifier">engine</span><span class="Other">:</span> <a href="tim/engine/meta.html#TimEngine"><span class="Identifier">TimEngine</span></a><span class="Other">;</span> <span class="Identifier">viewName</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">layoutName</span> <span class="Other">=</span> <span class="Identifier">defaultLayout</span><span class="Other">;</span>
<span class="Identifier">global</span><span class="Other">,</span> <span class="Identifier">local</span> <span class="Other">=</span> <span class="Identifier">newJObject</span><span class="Other">(</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">JsonError</span><span class="Other">,</span> <span class="Identifier">TimError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">global</span><span class="Other">,</span> <span class="Identifier">local</span> <span class="Other">=</span> <span class="Identifier">newJObject</span><span class="Other">(</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ValueError</span><span class="Other">,</span>
<span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">JsonError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">RegexError</span><span class="Other">,</span> <span class="Identifier">TimError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>

Expand All @@ -171,6 +175,19 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
</dd>
</div>

</div>
<div id="toHtml-procs-all">
<div id="toHtml,string,string">
<dt><pre><span class="Keyword">proc</span> <a href="#toHtml%2Cstring%2Cstring"><span class="Identifier">toHtml</span></a><span class="Other">(</span><span class="Identifier">name</span><span class="Other">,</span> <span class="Identifier">code</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span>
<span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">RegexError</span><span class="Other">,</span> <span class="Identifier">JsonError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>



</dd>
</div>

</div>

</dl>
Expand Down Expand Up @@ -216,7 +233,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-16 07:40:20 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-17 12:57:15 UTC</small>
</div>
</div>
</div>
Expand Down
20 changes: 16 additions & 4 deletions theindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="title">Index</h1>
</ul></dd>
<dt><a name="Ast" href="#Ast"><span>Ast:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="ast: type Ast" href="tim/engine/ast.html#Ast">ast: type Ast</a></li>
data-doc-search-tag="ast: object Ast" href="tim/engine/ast.html#Ast">ast: object Ast</a></li>
</ul></dd>
<dt><a name="badIndentation" href="#badIndentation"><span>badIndentation:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
Expand All @@ -58,6 +58,10 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="meta: proc clearTemplateByPath(engine: TimEngine; path: string)" href="tim/engine/meta.html#clearTemplateByPath%2CTimEngine%2Cstring">meta: proc clearTemplateByPath(engine: TimEngine; path: string)</a></li>
</ul></dd>
<dt><a name="cmdBreak" href="#cmdBreak"><span>cmdBreak:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="ast: CommandType.cmdBreak" href="tim/engine/ast.html#cmdBreak">ast: CommandType.cmdBreak</a></li>
</ul></dd>
<dt><a name="cmdDiscard" href="#cmdDiscard"><span>cmdDiscard:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="ast: CommandType.cmdDiscard" href="tim/engine/ast.html#cmdDiscard">ast: CommandType.cmdDiscard</a></li>
Expand Down Expand Up @@ -570,8 +574,6 @@ <h1 class="title">Index</h1>
</ul></dd>
<dt><a name="newParser" href="#newParser"><span>newParser:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="parser: proc newParser(id: string; code: string): Parser" href="tim/engine/parser.html#newParser%2Cstring%2Cstring">parser: proc newParser(id: string; code: string): Parser</a></li>
<li><a class="reference external"
data-doc-search-tag="parser: proc newParser(engine: TimEngine; tpl: TimTemplate; isMainParser = true;
refreshAst = false): Parser" href="tim/engine/parser.html#newParser%2CTimEngine%2CTimTemplate">parser: proc newParser(engine: TimEngine; tpl: TimTemplate; isMainParser = true;
refreshAst = false): Parser</a></li>
Expand Down Expand Up @@ -764,6 +766,12 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="parser: object Parser" href="tim/engine/parser.html#Parser">parser: object Parser</a></li>
</ul></dd>
<dt><a name="parseSnippet" href="#parseSnippet"><span>parseSnippet:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="parser: proc parseSnippet(snippetPath: string): Parser" href="tim/engine/parser.html#parseSnippet%2Cstring">parser: proc parseSnippet(snippetPath: string): Parser</a></li>
<li><a class="reference external"
data-doc-search-tag="parser: proc parseSnippet(id, code: string): Parser" href="tim/engine/parser.html#parseSnippet%2Cstring%2Cstring">parser: proc parseSnippet(id, code: string): Parser</a></li>
</ul></dd>
<dt><a name="precompile" href="#precompile"><span>precompile:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="tim: proc precompile(engine: TimEngine; callback: TimCallback = nil; flush = true;
Expand Down Expand Up @@ -848,6 +856,10 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="meta: enum TimTemplateType" href="tim/engine/meta.html#TimTemplateType">meta: enum TimTemplateType</a></li>
</ul></dd>
<dt><a name="toHtml" href="#toHtml"><span>toHtml:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="tim: proc toHtml(name, code: string): string" href="index.html#toHtml%2Cstring%2Cstring">tim: proc toHtml(name, code: string): string</a></li>
</ul></dd>
<dt><a name="TokenKind" href="#TokenKind"><span>TokenKind:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="tokens: enum TokenKind" href="tim/engine/tokens.html#TokenKind">tokens: enum TokenKind</a></li>
Expand Down Expand Up @@ -944,7 +956,7 @@ <h1 class="title">Index</h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-16 07:40:20 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-17 12:57:15 UTC</small>
</div>
</div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions tim.idx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
nimTitle tim tim.html module tim 0
nim localStorage tim.html#localStorage const localStorage 22
nim initCommonStorage tim.html#initCommonStorage.m,untyped macro initCommonStorage(x: untyped) 24
nim `&*` tim.html#&*.t,untyped template `&*`(n: untyped): untyped 31
nim precompile tim.html#precompile,TimEngine,TimCallback,int,JsonNode proc precompile(engine: TimEngine; callback: TimCallback = nil; flush = true;\n waitThread = false; browserSyncPort = Port(6502);\n browserSyncDelay = 550; global: JsonNode = newJObject();\n watchoutNotify = true) 139
nim render tim.html#render,TimEngine,string proc render(engine: TimEngine; viewName: string; layoutName = defaultLayout;\n global, local = newJObject()): string 232
nim localStorage tim.html#localStorage const localStorage 25
nim initCommonStorage tim.html#initCommonStorage.m,untyped macro initCommonStorage(x: untyped) 27
nim `&*` tim.html#&*.t,untyped template `&*`(n: untyped): untyped 34
nim toHtml tim.html#toHtml,string,string proc toHtml(name, code: string): string 62
nim precompile tim.html#precompile,TimEngine,TimCallback,int,JsonNode proc precompile(engine: TimEngine; callback: TimCallback = nil; flush = true;\n waitThread = false; browserSyncPort = Port(6502);\n browserSyncDelay = 550; global: JsonNode = newJObject();\n watchoutNotify = true) 259
nim render tim.html#render,TimEngine,string proc render(engine: TimEngine; viewName: string; layoutName = defaultLayout;\n global, local = newJObject()): string 351
14 changes: 9 additions & 5 deletions tim/engine/ast.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ <h1 class="title">tim/engine/ast</h1>
<details open>
<summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#Ast" title="Ast {.acyclic.} = ref object
<li><a class="reference" href="#Ast" title="Ast = object
src*: string ## trace the source path
nodes*: seq[Node] ## a seq containing tree nodes
partials*: TimPartialsTable ## other trees resulted from imports
jit*: bool">Ast</a></li>
<li><a class="reference" href="#CommandType" title="CommandType = enum
cmdEcho = &quot;echo&quot;, cmdReturn = &quot;return&quot;, cmdDiscard = &quot;discard&quot;">CommandType</a></li>
cmdEcho = &quot;echo&quot;, cmdReturn = &quot;return&quot;, cmdDiscard = &quot;discard&quot;,
cmdBreak = &quot;break&quot;">CommandType</a></li>
<li><a class="reference" href="#ConditionBranch" title="ConditionBranch = tuple[expr: Node, body: seq[Node]]">ConditionBranch</a></li>
<li><a class="reference" href="#FnParam" title="FnParam = tuple[pName: string, pType: NodeType, pImplVal: Node, meta: Meta]">FnParam</a></li>
<li><a class="reference" href="#HtmlAttributes" title="HtmlAttributes = TableRef[string, seq[Node]]">HtmlAttributes</a></li>
Expand Down Expand Up @@ -167,6 +168,7 @@ <h1 class="title">tim/engine/ast</h1>
fnReturnType*: NodeType ## the return type of a function
## if a function has no return type, then `ntUnknown`
## is used as default (void)
fnReturnHtmlElement*: HtmlTag
fnFwdDecl*, fnExport*: bool
of ntJavaScriptSnippet, ntYamlSnippet, ntJsonSnippet:
Expand Down Expand Up @@ -375,7 +377,7 @@ <h1><a class="toc-backref" href="#6">Imports</a></h1>
<h1><a class="toc-backref" href="#7">Types</a></h1>
<dl class="item">
<div id="Ast">
<dt><pre><a href="ast.html#Ast"><span class="Identifier">Ast</span></a> {.<span class="Identifier">acyclic</span>.} <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<dt><pre><a href="ast.html#Ast"><span class="Identifier">Ast</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">src</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Comment">## trace the source path</span>
<span class="Identifier">nodes</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="ast.html#Node"><span class="Identifier">Node</span></a><span class="Other">]</span> <span class="Comment">## a seq containing tree nodes </span>
<span class="Identifier">partials</span><span class="Operator">*</span><span class="Other">:</span> <a href="ast.html#TimPartialsTable"><span class="Identifier">TimPartialsTable</span></a> <span class="Comment">## other trees resulted from imports</span>
Expand All @@ -389,7 +391,8 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
</div>
<div id="CommandType">
<dt><pre><a href="ast.html#CommandType"><span class="Identifier">CommandType</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
<span class="Identifier">cmdEcho</span> <span class="Other">=</span> <span class="StringLit">&quot;echo&quot;</span><span class="Other">,</span> <span class="Identifier">cmdReturn</span> <span class="Other">=</span> <span class="StringLit">&quot;return&quot;</span><span class="Other">,</span> <span class="Identifier">cmdDiscard</span> <span class="Other">=</span> <span class="StringLit">&quot;discard&quot;</span></pre></dt>
<span class="Identifier">cmdEcho</span> <span class="Other">=</span> <span class="StringLit">&quot;echo&quot;</span><span class="Other">,</span> <span class="Identifier">cmdReturn</span> <span class="Other">=</span> <span class="StringLit">&quot;return&quot;</span><span class="Other">,</span> <span class="Identifier">cmdDiscard</span> <span class="Other">=</span> <span class="StringLit">&quot;discard&quot;</span><span class="Other">,</span>
<span class="Identifier">cmdBreak</span> <span class="Other">=</span> <span class="StringLit">&quot;break&quot;</span></pre></dt>
<dd>


Expand Down Expand Up @@ -545,6 +548,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
<span class="Identifier">fnReturnType</span><span class="Operator">*</span><span class="Other">:</span> <a href="ast.html#NodeType"><span class="Identifier">NodeType</span></a> <span class="Comment">## the return type of a function</span>
<span class="Comment">## if a function has no return type, then `ntUnknown`</span>
<span class="Comment">## is used as default (void)</span>
<span class="Identifier">fnReturnHtmlElement</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">HtmlTag</span>
<span class="Identifier">fnFwdDecl</span><span class="Operator">*</span><span class="Other">,</span> <span class="Identifier">fnExport</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>

<span class="Keyword">of</span> <span class="Identifier">ntJavaScriptSnippet</span><span class="Other">,</span> <span class="Identifier">ntYamlSnippet</span><span class="Other">,</span> <span class="Identifier">ntJsonSnippet</span><span class="Other">:</span>
Expand Down Expand Up @@ -1011,7 +1015,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-16 07:40:20 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-03-17 12:57:15 UTC</small>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 9c54fa7

Please sign in to comment.