Skip to content

Make it js framework independent #11

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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