eeue56 / elm-static-html

Statically render html from Elm!
BSD 3-Clause "New" or "Revised" License
87 stars 10 forks source link

Allowing prefix and suffix in file generation #12

Open TheoWinterhalter opened 7 years ago

TheoWinterhalter commented 7 years ago

I may be wrong, but elm doesn't generate a complete HTML page (it doesn't have the <head> for instance) so I usually do

elm-static-html --filename Static.elm --output static.html
cat header.html static.html footer.html > index.html

but this doesn't scale very well with multiple file generation. Should we allow for this library to automatically handle this kind of things?

YetAnotherMinion commented 7 years ago

This functionality would be useful for putting <!DOCTYPE html> at the top of the file.

eeue56 commented 7 years ago

Folks, this is probably better solved by https://www.npmjs.com/package/elm-static-html-lib which is what I'm using in production. I'd like to move this codebase over to use that. Does someone want to make a PR?