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
# symfony2/app/config/parameters.ini | |
locale="undefined" | |
fallback_locale="en" |
var ie678 = !!$("<i><!--[if lte IE 8]><i></i><![endif]--></i>").appendTo("body").children()[0]; |
HTML5Boilerplate - http://html5boilerplate.com/ , https://github.com/h5bp/html5-boilerplate .
20. base.html.twig
into app/Resources/views/base.html.twig
.web/lib/libraryName
. For example, my structure:web
... | |
const renderApp = (location, preload) => { | |
return universalRouter({routes, location, store, history, deferred: true, preload}) | |
.then(({component, redirectLocation}) => { | |
if (redirectLocation) { | |
history.replace(redirectLocation) | |
} else { | |
render(component, document.getElementById('react-view')); | |
} | |
}) |
// ... | |
const renderApp = (location, initialStatus) => { | |
return universalMatch({routes, location, store, history, deferred: true, initialStatus}) | |
.then(({component, redirectLocation}) => { | |
if (redirectLocation) { | |
history.replace(redirectLocation) | |
} else { | |
render(component, document.getElementById('react-view')); | |
} | |
}) |
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3. | |
// | |
// This is a hack to fill the gap between 480 and 767 pixels - a missing range | |
// in the bootstrap responsive grid structure. Use these classes to style pages | |
// on cellphones when they transition from portrait to landscape. | |
// | |
// Contains: | |
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout | |
// Visibility classes for the Mid-Small layout | |
// Redefined visibility classes for the Extra Small layout |