A page shell for generating index.html for Respo projects
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/shell_page
.gitattributes
.gitignore
README.md
calcit.edn
meyvn.edn
package.json
shadow-cljs.edn
yarn.lock

README.md

Shell Page (generator)

Clojars Project

Simple script for rendering index.html from configs.

Usage

[mvc-works/shell-page "0.1.9"]
(def app-html "<div>SSR rendered</div>")

(def configs {:title "A title"
              :icon "http://icon-url.png"
              :ssr "respo-ssr"
              :styles ["main.css"]
              :inline-styles [".app{color: #ddd;}"]
              :scripts ["main.js"]
              :inline-html ""
              :append-html ""
              :viewport "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"})

(shell-page.core/make-page app-html configs) ; returns string of html

License

MIT