Skip to content

Make it js framework independent #11

@the-man-with-a-golden-mind

Description

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? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions