You are here

Installation.txt in Sassy 7

Installation of Cake wrapper for PHamlP
=======================================

The Cake wrapper for PHamlP consists of a Haml view render (haml.php), a Sass 
Asset filter (sass.php),and Cake specific implementations of the Markdown and 
Textile Haml filters.

Haml
====
* Put PHamlP in your vendors directory
* Put haml.php in your views directory
* Configure the view and HamlParser using
  Configure::write('Haml.<optionName>', <optionValue>);
  See haml.php and the PHamlP Wiki (http://code.google.com/p/phamlp/w/list)
  for a description of options
* Add the following line in your app_controller.php
  var $view = 'Haml';
* Create .haml views in your view folders
 
By default the parsed views (.ctp files) are cached under APP.tmp.haml

Haml Filters
============
* Put Markdown into the APP.vendors.markdown directory
  and/or Textile into the APP.vendors.textile directory
  NOTE: if you change the directory you will need to edit the filters
* Put the filters into a directory, e.g. VIEWS.hamlFilters
* Configure HamlParser to search this directory for filters
  Configure::write('Haml.filterDir', VIEWS.'hamlFilters');

Sass
====
* Put PHamlP in your vendors directory
* Put this file in your webroot directory
* Configure the SassParser using
  Configure::write('Sass.<optionName>', <optionValue>);
  See below for a description of options
* Add the following line in your core.php
  Configure::write('Asset.filter.css', 'sass.php');
* Create .sass stylesheets in your webroot/css directory
  NOTE: The generated links are to the webroot/ccss directory, so URLs in 
  your stylesheets must be relative this.

File

phamlp/Cake/Installation.txt
View source
  1. Installation of Cake wrapper for PHamlP
  2. =======================================
  3. The Cake wrapper for PHamlP consists of a Haml view render (haml.php), a Sass
  4. Asset filter (sass.php),and Cake specific implementations of the Markdown and
  5. Textile Haml filters.
  6. Haml
  7. ====
  8. * Put PHamlP in your vendors directory
  9. * Put haml.php in your views directory
  10. * Configure the view and HamlParser using
  11. Configure::write('Haml.', );
  12. See haml.php and the PHamlP Wiki (http://code.google.com/p/phamlp/w/list)
  13. for a description of options
  14. * Add the following line in your app_controller.php
  15. var $view = 'Haml';
  16. * Create .haml views in your view folders
  17. By default the parsed views (.ctp files) are cached under APP.tmp.haml
  18. Haml Filters
  19. ============
  20. * Put Markdown into the APP.vendors.markdown directory
  21. and/or Textile into the APP.vendors.textile directory
  22. NOTE: if you change the directory you will need to edit the filters
  23. * Put the filters into a directory, e.g. VIEWS.hamlFilters
  24. * Configure HamlParser to search this directory for filters
  25. Configure::write('Haml.filterDir', VIEWS.'hamlFilters');
  26. Sass
  27. ====
  28. * Put PHamlP in your vendors directory
  29. * Put this file in your webroot directory
  30. * Configure the SassParser using
  31. Configure::write('Sass.', );
  32. See below for a description of options
  33. * Add the following line in your core.php
  34. Configure::write('Asset.filter.css', 'sass.php');
  35. * Create .sass stylesheets in your webroot/css directory
  36. NOTE: The generated links are to the webroot/ccss directory, so URLs in
  37. your stylesheets must be relative this.