create-modulo
Version:
Starter projects for Modulo.html - Ready for all uses - Markdown-SSG / SSR / API-backed SPA
129 lines (112 loc) • 4.37 kB
HTML
<script src=Modulo.html></script><template type=f>
<!-- All content files must be listed here, in a comma-separated format:
(File path), (Title), (New section title) -->
<ContentList -name="sidebar">
start/index.html, Introduction, Modulo
start/getting-started.html, Getting Started
defs/overview.html, Overview, Definitions
defs/importing.html, Importing
defs/definitions.html, Definition Types
defs/processors.html, Processors
defs/custom.html, Custom Types
templating/index.html, Language Overview, Templating
templating/filters.html, Template Filters
templating/tags.html, Template Tags
parts/props.html, Props, Component Parts
parts/script.html, Script
parts/state.html, State
parts/staticdata.html, StaticData
parts/style.html, Style
parts/template.html, Template
core/artifact.html, Artifact, Core Definitions
core/component.html, Component
core/configuration.html, Configuration
core/contentlist.html, ContentList
core/include.html, Include
core/library.html, Library
extension/engine.html, Upgrading Engines, Extension
</ContentList>
<!-- until i can make builds more dependable, broke down into sections: -->
<ContentList -name=partial command="build1">
index.html
start/index.html
start/getting-started.html
defs/overview.html
defs/importing.html
defs/definitions.html
defs/processors.html
defs/custom.html
</ContentList>
<ContentList -name=partial command="build2">
parts/props.html
parts/script.html
parts/state.html
parts/staticdata.html
parts/style.html
parts/template.html
</ContentList>
<ContentList -name=partial command="build3">
core/artifact.html
core/component.html
core/configuration.html
core/contentlist.html
core/include.html
core/library.html
extension/engine.html
</ContentList>
<ContentList -name=partial command="build4">
templating/index.html
templating/filters.html
templating/tags.html
</ContentList>
<!--
extension/lifecycle.html, Lifecycle and Directives
start/examples.html, Example Gallery
extension/lifecycle.html, Lifecycle and Directives
api/index.html, Overview, API and Extension
api/upgrading-from-alpha.html,Upgrading Versions
api/domcursor.html, DOMCursor, Reconciliation
api/reconciler.html, Reconciler and Patches,
api/directives.html, Directives, Component API
api/lifecycle.html, Lifecycle
api/processors.html, Processors, Definition API
eg/index.html, Overview, Examples
eg/forms.html, Forms
eg/widgets.html, Widgets
eg/data.html, Data
eg/component-scripting.html,More Scripting
eg/tutorial_1.html, Part 1, Components Tutorial
eg/tutorial_2.html, Part 2
eg/tutorial_3.html, Part 3
eg/tutorial_4.html, Part 4
eg/tutorial_5.html, Part 5
eg/tutorial_6.html, Part 6
eg/tutorial_7.html, Part 7
-->
<!-- Bring in JS libraries -->
<Include>
<script src="js/highlight.min.htm"></script>
<script src="js/showdown_2.1.0.min.htm"></script>
<script src="js/ModuloDocs-markdown.htm"></script>
<script src="js/ModuloDocs-toc-helpers.htm"></script>
</Include>
<Modulo -src="components/"></Modulo>
<Modulo -src="config.html"></Modulo>
<!-- Uncomment to get parent theme: -->
<!--<Modulo namespace=x -src="../../static/index.html"></Modulo>-->
<!-- Uncomment to get ModuloHTML.org website wrapper: -->
<!--<Modulo namespace=x -src="https://modulohtml.org/static/index.html"></Modulo>-->
<script Configuration>
// Configuration script to register showdown and configure markdown
if (modulo.DEV) {
modulo.util.showdownConvert = function showdownConvert (text) {
return (new showdown.Converter()).makeHtml(text)
}
const content = modulo.stores.CACHE.getItem(modulo.filePath)
if (content) { // Viewing a content file, mount Page
delete modulo.stores.CACHE.data.fdata[modulo.filePath]
modulo.docsContent = modulo.contentType.MD(content)
document.body.innerHTML = '<x-Page rootat="https://modulohtml.org/"><docs-Page></docs-Page></x-Page>'
}
}
</script>