Skip to content

Templates and Syntaxes ​

Templates ​

TemplateWhat it isApp features
minimalA single HTML file with no build step: open index.html in a browserNo
jsA JavaScript app bundled with ViteYes
tsA TypeScript app bundled with ViteYes
ssx-jsA site pre-rendered with SSX, static or server-rendered, in JavaScriptNo
ssx-tsThe same, in TypeScriptNo

The app features (UI, mobile, routing, sign-in and the rest) belong to the js and ts templates. Pick SSX for content sites where pages should arrive as HTML; pick js or ts for apps, and for everything native.

Syntaxes ​

Every template but minimal comes in three syntaxes, all rendering through lit-html underneath:

SyntaxFlagLooks like
lit-html--syntax=lit-htmlhtml`<p>${entity.who}</p>`
JSX or TSX--syntax=jsx<p>{entity.who}</p>, through @inglorious/vite-plugin-jsx
Vue--syntax=vueVue-like single-file templates, through @inglorious/vite-plugin-vue

The generated app, features included, is written in the syntax you pick. A few generated pieces that are plain functions, such as the analytics and push prompts and the update page, stay in lit-html in every syntax.

Released under the MIT License.