HTML5Boilerplate - http://html5boilerplate.com/ , https://github.com/h5bp/html5-boilerplate .
- Copy
20. base.html.twigintoapp/Resources/views/base.html.twig. - Libraries can be placed in
web/lib/libraryName. For example, my structure:
web
lib
h5bp
after.css
style.css
jquery
jquery-....js
jqueryui
js
jquery-ui-....custom.min.js
css
themeName
...
modernizr
modernizr-2.5.2.js
Or you can create bundle named like CommonLibraries and store them in it.
-
Links to libraries, shipped with HTML5Boilerplate:
-
I guess the HTML5Boilerplate's
style.cssshould be divided into two parts, 'cause within it there is an instruction: "Please define your styles before this section." -
Adjust
base.html.twigto your needs - replace "Main description" and "Main title", include libraries, etc.
If you want to dump asset files and to use them in the dev environment:
- Change
app/config/config_dev.ymlfile:
assetic:
use_controller: false
debug: false- In
app/config/routing_dev.ymlcomment out:
#_assetic:
# resource: .
# type: assetic- Run a command:
php app/console assetic:dump
- To automatically regenerate assets as they change:
php app/console assetic:dump --watch