-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dependencies)!: replaced
ejs
with more light-weight and faster…
… `eta` BREAKING CHANGE: Views now have to be written using `eta`
- Loading branch information
Showing
17 changed files
with
194 additions
and
287 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</footer> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<% | ||
/** | ||
* @name it | ||
*/ | ||
%> | ||
<%~ includeFile('layout/header', it) %> | ||
<h1><code><%~ it.moduleName %></code></h1> | ||
|
||
<p> | ||
Install using | ||
</p> | ||
<pre><code>npm install <%~ it.moduleName %></code></pre> | ||
|
||
<h2>Exported Members</h2> | ||
<p>You can access these members by importing the module:</p> | ||
<pre><code>import { <i>member</i> } from '<%~ it.moduleName %>';</code></pre> | ||
|
||
<!-- Members --> | ||
<% it.members.forEach(function(member) { %> | ||
<div class="card fluid"> | ||
<!-- Name with anchor link --> | ||
<a id="<%= member.name %>" href="#<%= member.name %>"> | ||
<h3><code><%~ member.name %></code></h3></a> | ||
|
||
<!-- Description, based on type --> | ||
<% member.declarations.forEach(function(declaration) { %> | ||
<% if (declaration.type === 'function') { %> | ||
<%~ includeFile('partials/function', {...it, declaration: declaration.declarations[0]}) %> | ||
<% } else if (declaration.type === 'class-interface') { %> | ||
<%~ includeFile('partials/class', {...it, declaration: declaration.declarations[0]}) %> | ||
<% } else if (declaration.type === 'variable') { %> | ||
<%~ includeFile('partials/variable', {...it, declaration: declaration.declarations[0]}) %> | ||
<% } else if (declaration.type === 'type') { %> | ||
<%~ includeFile('partials/type', {...it, declaration: declaration.declarations[0]}) %> | ||
<% } else { %> | ||
<!-- UNRESOLVED TYPE: <%~ declaration.type %> with <%~ JSON.stringify(declaration) %>--> | ||
<% } %> | ||
<% }) %> | ||
</div> | ||
<% }) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.