Closed chrimesdev closed 5 years ago
In case you didn't know - we recently added guidance to the GOV.UK Prototype Kit:
https://govuk-prototype-kit.herokuapp.com/docs/adding-css-javascript-and-images
Would the easiest thing be to have an example in the code as well?
Having helped a few people get set up recently. The places they struggled were when there wasn't an obvious example they could cut and paste in the code itself.
@GrilloPress - yeah an example is a good idea and has been added. You can see the work done so far in the commits above your message.
Released yesterday in version 1.0.2.
Images
Users can add custom image assets by putting image files in the
app/assets/images
folder, then referencing them in HTML with/images/filename.jpg
. However, theimages
folder does not exist inassets
and there is no guidance or examples for doing this.JavaScript - Advanced guide?
Users can add custom JavaScript or ES6 modules by writing JavaScript (or using third party libraries) in the
app/assets/javascript
folder then referencing them in HTML inapp/views/includes/scripts.html
. There currently isn't any guidance or examples for doing this.WIll users be wanting to add custom JavaScript?