HTML5Boilerplate - http://html5boilerplate.com/ , https://github.com/h5bp/html5-boilerplate .
- Copy
20. base.html.twig
intoapp/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.css
should be divided into two parts, 'cause within it there is an instruction: "Please define your styles before this section." -
Adjust
base.html.twig
to 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.yml
file:
assetic:
use_controller: false
debug: false
- In
app/config/routing_dev.yml
comment 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