I've figure out that for each project, I am making a small changes in the core.sh
I am changing the htmx_page() so I could have all of the js and css definitions in config.sh
`
function htmx_page() {
[[ ${HTTP_HEADERS["hx-request"]} == "true" ]] || [[ "$INTERNAL_REQUEST" == "true" ]] || cat <<-EOF
<!doctype html>
${STYLES[*]}
${SCRIPTS[*]}
$(_inject_hmr)
EOF
`
and also I am adding
`
function page() {
[[ "$INTERNAL_REQUEST" == "true" ]] || cat <<-EOF
<!doctype html>
${STYLES[*]}
${SCRIPTS[*]}
EOF
cat
cat <<-EOF
EOF
}
`
for more htmx independence. IMHO it looks clearer.
What do you think about change the generator and add the htmx as the possibility not something mandatory? :)
I've figure out that for each project, I am making a small changes in the core.sh
${STYLES[*]} ${SCRIPTS[*]} $(_inject_hmr) EOF `I am changing the htmx_page() so I could have all of the js and css definitions in config.sh
`
function htmx_page() {
[[ ${HTTP_HEADERS["hx-request"]} == "true" ]] || [[ "$INTERNAL_REQUEST" == "true" ]] || cat <<-EOF
<!doctype html>
and also I am adding
`
${STYLES[*]} ${SCRIPTS[*]} EOFfunction page() {
[[ "$INTERNAL_REQUEST" == "true" ]] || cat <<-EOF
<!doctype html>
cat
cat <<-EOF
EOF } `for more htmx independence. IMHO it looks clearer.
What do you think about change the generator and add the htmx as the possibility not something mandatory? :)