commit - d2e15101190f6ade30fd37b466d94cef85a2189f
commit + c722f8281d0f19080f19928a69de950c1472cf94
blob - 447ab662e85a6e9e0a4e57947adfd973aa5b16e4
blob + e5b32df958fd3cff18dbe97172cf9500a9e5f661
--- web/template/Makefile
+++ web/template/Makefile
PNPM ?= pnpm
CUSTOM_BOOTSTRAP_SCSS := vendor/custom-bootstrap/scss/custom.scss
-CUSTOM_CSS_OUT := assets/css/custom.css
+CUSTOM_CSS_OUT := assets/css/styles.css
VENDOR_FOLDER := vendor/custom-bootstrap
.PHONY: css watch-css install
install:
- $(SASS) -C $(VENDOR_FOLDER) install
+ $(PNPM) -C $(VENDOR_FOLDER) install
css:
- $(SASS) $(CUSTOM_BOOTSTRAP_SCSS) $(CUSTOM_CSS_OUT)
+ $(SASS) -q $(CUSTOM_BOOTSTRAP_SCSS) $(CUSTOM_CSS_OUT)
watch-css:
$(SASS) --watch $(CUSTOM_BOOTSTRAP_SCSS):$(CUSTOM_CSS_OUT)
blob - 629c8d22ff51cee1fe6d38e73391345b83360f89 (mode 644)
blob + /dev/null
--- web/template/assets/css/styles.css
+++ /dev/null
-html {
- -webkit-text-size-adjust: 100%;
- padding-bottom: 4em;
-}
-body {
- font-family: sans-serif;
- line-height: 1.5em;
- max-width: 40em;
- padding: 0 2%;
- margin: auto;
-}
blob - 85f8eedb3c21a79ba94d2576355f47d7d562b757
blob + 5d05eeb8dc39fb222260c83c30376c6be81270da
--- web/template/cargo-generate.toml
+++ web/template/cargo-generate.toml
[placeholders]
project-description = { type = "string", prompt = "Short description of the project", default = "An example generated using the simple template" }
+
+[hooks]
+post = ["post-script.rhai"]
blob - /dev/null
blob + 88fdfcd3ad154c7c4722a23bfe9caf57e43df5d5 (mode 644)
--- /dev/null
+++ web/template/post-script.rhai
+system::command("git", ["init"]);
+system::command("git", ["submodule", "add", "https://github.com/ijanc/custom-bootstrap", "vendor/custom-bootstrap"]);
blob - ee0649398dbcf65170b3ec8c1a23ab209f7d4cc0
blob + 1d62c4c7ccbe51d31df6b1b8b688d5cd45b113d4
--- web/template/templates/layout.jinja
+++ web/template/templates/layout.jinja
<li><a href="/validation">Validation</a></li>
</ul>
</nav>
- <h1><h1>Hello, World web =]</h1>
+ <h1>Hello, World web =]</h1>
<p>Template form https://ijanc.org</p>
{% block body %}{% endblock %}
</body>