yesodweb / yesod-scaffold

The Yesod scaffolding, with branches for different versions.
MIT License
76 stars 39 forks source link

Add an example of a static resources in template to scaffolding #184

Closed hyperpape closed 6 years ago

hyperpape commented 6 years ago

If the initial templates included in the scaffolding are intended to be examples to help newcomers, I think it would be helpful to show an example of a static resource (perhaps an image) in a hamlet file. I recently didn't quite understand the syntax rules, and had to ask around for help.

psibi commented 6 years ago

@hyperpape IMO, there are lots of things newcomers may get stuck by. A better place IMO is to put them under the cookbook: https://github.com/yesodweb/yesod-cookbook

I would be glad to accept a PR showcasing the above example.

hyperpape commented 6 years ago

That seems reasonable. I'll look at the cookbook--I wasn't really aware of it as a resource.