Roots Theme modded for Bootstrap SASS, HAML, Compass and Coffeescript
##Difference from original Roots
- grunt-haml-php - Modded for the last version of MTHAML and fix for the compile #7 and #8 (not in the dependence of packages.json!)
- assets/sass - SASS folders
- assets/sass/bootstrap - Bootstrap the SASS way (remember to update with the last version (and rename bootstrap.scss in _bootstrap.scss))
- assets/coffee - _main.js file converted in coffeescript
- assets/haml - templates folder files written in HAML
- compass - grunt use compass for compile the SASS files
- Gruntfile.js - modded for the new settings
- lib/scripts.php - added a rule for WP_DEBUG enabled for insert livereload in the template
- Use WP_DEBUG instead WP_ENV
##Roots Readme
Roots is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.
- Source: https://github.com/roots/roots
- Homepage: http://roots.io/
- Documentation: http://roots.io/docs/
- Twitter: @rootswp, @retlehs, @swalkinshaw, @Foxaii, @c2foryou
- Newsletter: Subscribe
- Forum: http://discourse.roots.io/
Install the Soil plugin to enable additional features:
- Root relative URLs
- Nice search (
/search/query/
) - Cleaner output of
wp_head
and enqueued assets markup
Clone the git repo - git clone https://github.com/Mte90/roots-haml-compass-coffeescript
- or download it and then rename the directory to the name of your theme or website. Install Grunt, and then install the dependencies for Roots contained in package.json
by running the following from the Roots theme directory:
npm install
Reference the theme activation documentation to understand everything that happens once you activate Roots.
PS: in node_modules
there is grunt-haml-php modded for the last version of MTHAML and fix for the compile.
Roots uses Grunt for compiling SASS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds.
Edit lib/config.php
to enable or disable theme features and to define a Google Analytics ID.
Edit lib/init.php
to setup navigation menus, post thumbnail sizes, post formats, and sidebars.
grunt dev
— Compile assets when file changes are made
grunt
— Create minified assets that are used on non-development environments
- Roots 101 — A guide to installing Roots, the files and theme organization
- Theme Wrapper — Learn all about the theme wrapper
- Build Script — A look into the Roots build script powered by Grunt
- Roots Sidebar — Understand how to display or hide the sidebar in Roots
- Grunt for compiling LESS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds
- Bower for front-end package management
- HTML5 Boilerplate
- Bootstrap
- Organized file and template structure
- ARIA roles and microformats
- Theme activation
- Theme wrapper
- Cleaner HTML output of navigation menus
- Posts use the hNews microformat
- Multilingual ready and over 30 available community translations