reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

index.html file is missing. #73

Closed mswift42 closed 9 years ago

mswift42 commented 9 years ago

With commit 1d405d661471a0f1bdf170d232087e722772e00f the index.html file in resources/templates was removed.

How am I supposed to add static resources now (bootstrap, material design, ...) ?

yogthos commented 9 years ago

any public static resources should go in the resources/public folder. So, you might have resources/public/css/site.css, etc. The resources are included relative to the public folder in the handler namespace in the home-page template.

mswift42 commented 9 years ago

But how do I include them?

With an index.html file I add links to static resources in the html's head or body.

How should I load them without one?

yogthos commented 9 years ago

Hiccup is used for HTML templating, if you look in the handler you'll see the home-page template that includes CSS and Js resources using include-js and include-css helper functions. However, any valid HTML tags are supported by Hiccup as well.

mswift42 commented 9 years ago

Oops, failed to look into the clj folder. Thanks, got it now.

yogthos commented 9 years ago

no prob