frontsau 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +21 -0
  5. data/README.md +30 -0
  6. data/Rakefile +2 -0
  7. data/bin/frontsau +15 -0
  8. data/bin/frontsau-phaml-compiler +35 -0
  9. data/example/.frontsau +12 -0
  10. data/example/assets/head.jpg +0 -0
  11. data/example/assets/script.js +4 -0
  12. data/example/assets/style.css +6 -0
  13. data/example/css/includes.sass +2 -0
  14. data/example/css/style.sass +6 -0
  15. data/example/image/head.jpg +0 -0
  16. data/example/index.html +0 -0
  17. data/example/js/script.coffee +1 -0
  18. data/frontsau.gemspec +41 -0
  19. data/lib/Phamlp/Phamlp.php +72 -0
  20. data/lib/Phamlp/PhamlpException.php +31 -0
  21. data/lib/Phamlp/haml/HamlException.php +29 -0
  22. data/lib/Phamlp/haml/HamlHelpers.php +199 -0
  23. data/lib/Phamlp/haml/HamlParser.php +1250 -0
  24. data/lib/Phamlp/haml/filters/HamlBaseFilter.php +30 -0
  25. data/lib/Phamlp/haml/filters/HamlCdataFilter.php +29 -0
  26. data/lib/Phamlp/haml/filters/HamlCssFilter.php +30 -0
  27. data/lib/Phamlp/haml/filters/HamlEscapedFilter.php +32 -0
  28. data/lib/Phamlp/haml/filters/HamlJavascriptFilter.php +31 -0
  29. data/lib/Phamlp/haml/filters/HamlPhpFilter.php +27 -0
  30. data/lib/Phamlp/haml/filters/HamlPlainFilter.php +28 -0
  31. data/lib/Phamlp/haml/filters/HamlPreserveFilter.php +29 -0
  32. data/lib/Phamlp/haml/filters/HamlSassFilter.php +37 -0
  33. data/lib/Phamlp/haml/filters/HamlScssFilter.php +37 -0
  34. data/lib/Phamlp/haml/filters/_HamlMarkdownFilter.php +50 -0
  35. data/lib/Phamlp/haml/filters/_HamlTextileFilter.php +50 -0
  36. data/lib/Phamlp/haml/messages/_i18n.php +32 -0
  37. data/lib/Phamlp/haml/messages/de.php +32 -0
  38. data/lib/Phamlp/haml/messages/fr.php +32 -0
  39. data/lib/Phamlp/haml/renderers/HamlCompactRenderer.php +32 -0
  40. data/lib/Phamlp/haml/renderers/HamlCompressedRenderer.php +48 -0
  41. data/lib/Phamlp/haml/renderers/HamlExpandedRenderer.php +58 -0
  42. data/lib/Phamlp/haml/renderers/HamlNestedRenderer.php +77 -0
  43. data/lib/Phamlp/haml/renderers/HamlRenderer.php +137 -0
  44. data/lib/Phamlp/haml/tree/HamlCodeBlockNode.php +58 -0
  45. data/lib/Phamlp/haml/tree/HamlCommentNode.php +41 -0
  46. data/lib/Phamlp/haml/tree/HamlDoctypeNode.php +27 -0
  47. data/lib/Phamlp/haml/tree/HamlElementNode.php +52 -0
  48. data/lib/Phamlp/haml/tree/HamlFilterNode.php +50 -0
  49. data/lib/Phamlp/haml/tree/HamlHelperNode.php +73 -0
  50. data/lib/Phamlp/haml/tree/HamlNode.php +253 -0
  51. data/lib/Phamlp/haml/tree/HamlNodeExceptions.php +19 -0
  52. data/lib/Phamlp/haml/tree/HamlRootNode.php +58 -0
  53. data/lib/Phamlp/sass/SassException.php +29 -0
  54. data/lib/Phamlp/sass/SassFile.php +164 -0
  55. data/lib/Phamlp/sass/SassParser.php +848 -0
  56. data/lib/Phamlp/sass/extensions/compass/config.php +65 -0
  57. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/_blueprint.scss +47 -0
  58. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +101 -0
  59. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -0
  60. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_debug.scss +11 -0
  61. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +86 -0
  62. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss +68 -0
  63. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_grid.scss +249 -0
  64. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_ie.scss +109 -0
  65. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +57 -0
  66. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +37 -0
  67. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +147 -0
  68. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_print.scss +93 -0
  69. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_reset.scss +3 -0
  70. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +133 -0
  71. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +54 -0
  72. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_typography.scss +104 -0
  73. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +37 -0
  74. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +58 -0
  75. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/grid.png +0 -0
  76. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/ie.sass +4 -0
  77. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/manifest.rb +30 -0
  78. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/partials/_base.sass +10 -0
  79. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/print.sass +4 -0
  80. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/screen.sass +12 -0
  81. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  82. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  83. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  84. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
  85. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
  86. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  87. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  88. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  89. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  90. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  91. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  92. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  93. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  94. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
  95. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
  96. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/grid.png +0 -0
  97. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
  98. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/manifest.rb +30 -0
  99. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
  100. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/print.sass +8 -0
  101. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/screen.sass +45 -0
  102. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/grid.png +0 -0
  103. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/ie.sass +16 -0
  104. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/manifest.rb +33 -0
  105. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_base.sass +10 -0
  106. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_form.sass +6 -0
  107. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_page.sass +18 -0
  108. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass +38 -0
  109. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/print.sass +5 -0
  110. data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/screen.sass +14 -0
  111. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/_compass.scss +2 -0
  112. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_css3.scss +15 -0
  113. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
  114. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_reset.scss +3 -0
  115. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_utilities.scss +6 -0
  116. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
  117. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
  118. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-size.scss +14 -0
  119. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
  120. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
  121. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
  122. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box.scss +112 -0
  123. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_columns.scss +55 -0
  124. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_font-face.scss +33 -0
  125. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_gradient.scss +82 -0
  126. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
  127. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_opacity.scss +27 -0
  128. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
  129. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
  130. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transform.scss +85 -0
  131. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transition.scss +85 -0
  132. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  133. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/reset/_utilities.scss +133 -0
  134. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_general.scss +6 -0
  135. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_links.scss +3 -0
  136. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_lists.scss +4 -0
  137. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_print.scss +17 -0
  138. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
  139. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_tables.scss +3 -0
  140. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_text.scss +3 -0
  141. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
  142. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
  143. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
  144. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
  145. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
  146. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  147. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  148. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
  149. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
  150. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
  151. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
  152. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
  153. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
  154. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
  155. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
  156. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  157. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
  158. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  159. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
  160. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
  161. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
  162. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/ellipsis.sass +9 -0
  163. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
  164. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
  165. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
  166. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
  167. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
  168. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
  169. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
  170. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/ie.sass +6 -0
  171. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/manifest.rb +4 -0
  172. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/print.sass +6 -0
  173. data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/screen.sass +7 -0
  174. data/lib/Phamlp/sass/extensions/compass/functions/colourStops.php +268 -0
  175. data/lib/Phamlp/sass/extensions/compass/functions/constants.php +44 -0
  176. data/lib/Phamlp/sass/extensions/compass/functions/fontFiles.php +30 -0
  177. data/lib/Phamlp/sass/extensions/compass/functions/imageSize.php +39 -0
  178. data/lib/Phamlp/sass/extensions/compass/functions/inlineData.php +84 -0
  179. data/lib/Phamlp/sass/extensions/compass/functions/lists.php +47 -0
  180. data/lib/Phamlp/sass/extensions/compass/functions/selectors.php +128 -0
  181. data/lib/Phamlp/sass/extensions/compass/functions/urls.php +143 -0
  182. data/lib/Phamlp/sass/extensions/compass/stylesheets/_compass.scss +2 -0
  183. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_css3.scss +15 -0
  184. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_layout.scss +1 -0
  185. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_reset.scss +3 -0
  186. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_utilities.scss +6 -0
  187. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
  188. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
  189. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-size.scss +14 -0
  190. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
  191. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
  192. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
  193. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box.scss +112 -0
  194. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_columns.scss +55 -0
  195. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_font-face.scss +33 -0
  196. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_gradient.scss +96 -0
  197. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
  198. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_opacity.scss +27 -0
  199. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_shared.scss +47 -0
  200. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
  201. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transform.scss +85 -0
  202. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transition.scss +85 -0
  203. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  204. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/reset/_utilities.scss +133 -0
  205. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_general.scss +6 -0
  206. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_links.scss +3 -0
  207. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_lists.scss +4 -0
  208. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_print.scss +17 -0
  209. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
  210. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_tables.scss +3 -0
  211. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_text.scss +3 -0
  212. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
  213. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
  214. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
  215. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
  216. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
  217. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  218. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  219. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
  220. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
  221. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
  222. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
  223. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
  224. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
  225. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
  226. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
  227. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  228. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
  229. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  230. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
  231. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
  232. data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
  233. data/lib/Phamlp/sass/messages/_i18n.php +122 -0
  234. data/lib/Phamlp/sass/messages/de.php +70 -0
  235. data/lib/Phamlp/sass/messages/fr.php +70 -0
  236. data/lib/Phamlp/sass/renderers/SassCompactRenderer.php +130 -0
  237. data/lib/Phamlp/sass/renderers/SassCompressedRenderer.php +102 -0
  238. data/lib/Phamlp/sass/renderers/SassExpandedRenderer.php +62 -0
  239. data/lib/Phamlp/sass/renderers/SassNestedRenderer.php +61 -0
  240. data/lib/Phamlp/sass/renderers/SassRenderer.php +51 -0
  241. data/lib/Phamlp/sass/script/SassScriptFunction.php +169 -0
  242. data/lib/Phamlp/sass/script/SassScriptFunctions.php +751 -0
  243. data/lib/Phamlp/sass/script/SassScriptLexer.php +114 -0
  244. data/lib/Phamlp/sass/script/SassScriptOperation.php +151 -0
  245. data/lib/Phamlp/sass/script/SassScriptParser.php +192 -0
  246. data/lib/Phamlp/sass/script/SassScriptParserExceptions.php +40 -0
  247. data/lib/Phamlp/sass/script/SassScriptVariable.php +57 -0
  248. data/lib/Phamlp/sass/script/literals/SassBoolean.php +67 -0
  249. data/lib/Phamlp/sass/script/literals/SassColour.php +886 -0
  250. data/lib/Phamlp/sass/script/literals/SassLiteral.php +359 -0
  251. data/lib/Phamlp/sass/script/literals/SassLiteralExceptions.php +47 -0
  252. data/lib/Phamlp/sass/script/literals/SassNumber.php +503 -0
  253. data/lib/Phamlp/sass/script/literals/SassString.php +106 -0
  254. data/lib/Phamlp/sass/tree/SassCommentNode.php +64 -0
  255. data/lib/Phamlp/sass/tree/SassContext.php +120 -0
  256. data/lib/Phamlp/sass/tree/SassDebugNode.php +84 -0
  257. data/lib/Phamlp/sass/tree/SassDirectiveNode.php +76 -0
  258. data/lib/Phamlp/sass/tree/SassElseNode.php +28 -0
  259. data/lib/Phamlp/sass/tree/SassExtendNode.php +47 -0
  260. data/lib/Phamlp/sass/tree/SassForNode.php +99 -0
  261. data/lib/Phamlp/sass/tree/SassIfNode.php +95 -0
  262. data/lib/Phamlp/sass/tree/SassImportNode.php +69 -0
  263. data/lib/Phamlp/sass/tree/SassMixinDefinitionNode.php +88 -0
  264. data/lib/Phamlp/sass/tree/SassMixinNode.php +91 -0
  265. data/lib/Phamlp/sass/tree/SassNode.php +342 -0
  266. data/lib/Phamlp/sass/tree/SassNodeExceptions.php +117 -0
  267. data/lib/Phamlp/sass/tree/SassPropertyNode.php +239 -0
  268. data/lib/Phamlp/sass/tree/SassRootNode.php +100 -0
  269. data/lib/Phamlp/sass/tree/SassRuleNode.php +337 -0
  270. data/lib/Phamlp/sass/tree/SassVariableNode.php +90 -0
  271. data/lib/Phamlp/sass/tree/SassWhileNode.php +64 -0
  272. data/lib/frontsau/assets/rack.rb +12 -0
  273. data/lib/frontsau/assets/sprockets.rb +59 -0
  274. data/lib/frontsau/assets/static_assets_compiler.rb +50 -0
  275. data/lib/frontsau/assets/url_rewriter.rb +22 -0
  276. data/lib/frontsau/assets/watcher.rb +60 -0
  277. data/lib/frontsau/thor_app.rb +118 -0
  278. data/lib/frontsau/version.rb +3 -0
  279. data/lib/frontsau.rb +64 -0
  280. metadata +578 -0
@@ -0,0 +1,30 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlBaseFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Base Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * Base Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * This class must be extended and the run() method overridden.
15
+ * @package PHamlP
16
+ * @subpackage Haml.filters
17
+ */
18
+ abstract class HamlBaseFilter {
19
+ /**
20
+ * Initialise the filter.
21
+ */
22
+ public function init() {}
23
+
24
+ /**
25
+ * Run the filter.
26
+ * This method must be overridden in child classes.
27
+ * @param string text to filter
28
+ */
29
+ abstract public function run($text);
30
+ }
@@ -0,0 +1,29 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlCdataFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * CDATA Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * CDATA Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Surrounds the filtered text with CDATA tags.
15
+ * @package PHamlP
16
+ * @subpackage Haml.filters
17
+ */
18
+ class HamlCdataFilter extends HamlBaseFilter {
19
+ /**
20
+ * Run the filter
21
+ * @param string text to filter
22
+ * @return string filtered text
23
+ */
24
+ public function run($text) {
25
+ return "<![CDATA[\n" .
26
+ preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text) .
27
+ " ]]>\n";
28
+ }
29
+ }
@@ -0,0 +1,30 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlCssFilter.php 99 2010-06-13 14:12:08Z chris.l.yates $ */
3
+ /**
4
+ * CSS Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * CSS Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Surrounds the filtered text with <style> and CDATA tags.
15
+ * Useful for including inline CSS.
16
+ * @package PHamlP
17
+ * @subpackage Haml.filters
18
+ */
19
+ class HamlCssFilter extends HamlBaseFilter {
20
+ /**
21
+ * Run the filter
22
+ * @param string text to filter
23
+ * @return string filtered text
24
+ */
25
+ public function run($text) {
26
+ return "<style type=\"text/css\">\n/*<![CDATA[*/\n" .
27
+ preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text) .
28
+ "/*]]>*/\n</style>\n";
29
+ }
30
+ }
@@ -0,0 +1,32 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlEscapedFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Escaped Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * Escaped Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Escapes the text.
15
+ * Code to be interpolated can be included by wrapping it in #().
16
+ * @package PHamlP
17
+ * @subpackage Haml.filters
18
+ */
19
+ class HamlEscapedFilter extends HamlBaseFilter {
20
+ /**
21
+ * Run the filter
22
+ * @param string text to filter
23
+ * @return string filtered text
24
+ */
25
+ public function run($text) {
26
+ return preg_replace(
27
+ HamlParser::MATCH_INTERPOLATION,
28
+ '<?php echo htmlspecialchars($text); ?>',
29
+ htmlspecialchars($text)
30
+ ) . "\n";
31
+ }
32
+ }
@@ -0,0 +1,31 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlJavascriptFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Javascript Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * Javascript Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Surrounds the filtered text with <script> and CDATA tags.
15
+ * Useful for including inline Javascript.
16
+ * Code to be interpolated can be included by wrapping it in #().
17
+ * @package PHamlP
18
+ * @subpackage Haml.filters
19
+ */
20
+ class HamlJavascriptFilter extends HamlBaseFilter {
21
+ /**
22
+ * Run the filter
23
+ * @param string text to filter
24
+ * @return string filtered text
25
+ */
26
+ public function run($text) {
27
+ return "<script type=\"text/javascript\">\n //<![CDATA[\n" .
28
+ preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text) .
29
+ " //]]>\n</script>\n";
30
+ }
31
+ }
@@ -0,0 +1,27 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlPhpFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * PHP Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * PHP Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * The text will be parsed with the PHP interpreter.
15
+ * @package PHamlP
16
+ * @subpackage Haml.filters
17
+ */
18
+ class HamlPhpFilter extends HamlBaseFilter {
19
+ /**
20
+ * Run the filter
21
+ * @param string text to filter
22
+ * @return string filtered text
23
+ */
24
+ public function run($text) {
25
+ return "<?php\n$text?>\n";
26
+ }
27
+ }
@@ -0,0 +1,28 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlPlainFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Plain Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * Plain Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Does not parse the filtered text. This is useful for large blocks of text
15
+ * without HTML tags when lines are not to be parsed.
16
+ * @package PHamlP
17
+ * @subpackage Haml.filters
18
+ */
19
+ class HamlPlainFilter extends HamlBaseFilter {
20
+ /**
21
+ * Run the filter
22
+ * @param string text to filter
23
+ * @return string filtered text
24
+ */
25
+ public function run($text) {
26
+ return preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text). "\n";
27
+ }
28
+ }
@@ -0,0 +1,29 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlPreserveFilter.php 103 2010-08-06 10:15:55Z chris.l.yates@gmail.com $ */
3
+ /**
4
+ * Preserve Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.filters
10
+ */
11
+
12
+ /**
13
+ * Preserve Filter for {@link http://haml-lang.com/ Haml} class.
14
+ * Does not parse the filtered text and preserves line breaks.
15
+ * @package PHamlP
16
+ * @subpackage Haml.filters
17
+ */
18
+ class HamlPreserveFilter extends HamlBaseFilter {
19
+ /**
20
+ * Run the filter
21
+ * @param string text to filter
22
+ * @return string filtered text
23
+ */
24
+ public function run($text) {
25
+ return str_replace("\n", '&#x000a;',
26
+ preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text)
27
+ ) . "\n";
28
+ }
29
+ }
@@ -0,0 +1,37 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlSassFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * {@link Sass http://sass-lang.com/} Filter for
5
+ * {@link http://haml-lang.com/ Haml} class file.
6
+ * @author Chris Yates <chris.l.yates@gmail.com>
7
+ * @copyright Copyright (c) 2010 PBM Web Development
8
+ * @license http://phamlp.googlecode.com/files/license.txt
9
+ * @package PHamlP
10
+ * @subpackage Haml.filters
11
+ */
12
+
13
+ require_once('HamlCssFilter.php');
14
+ require_once(dirname(__FILE__).'/../../sass/SassParser.php');
15
+
16
+ /**
17
+ * {@link Sass http://sass-lang.com/} Filter for
18
+ * {@link http://haml-lang.com/ Haml} class.
19
+ * Parses the text as Sass then calls the CSS filter.
20
+ * Useful for including inline Sass.
21
+ * @package PHamlP
22
+ * @subpackage Haml.filters
23
+ */
24
+ class HamlSassFilter extends HamlBaseFilter {
25
+ /**
26
+ * Run the filter
27
+ * @param string text to filter
28
+ * @return string filtered text
29
+ */
30
+ public function run($text) {
31
+ $sass = new SassParser();
32
+ $css = new HamlCssFilter();
33
+ $css->init();
34
+
35
+ return $css->run($sass->toCss(preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text), false));
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlSassFilter.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * {@link Scss http://sass-lang.com/} Filter for
5
+ * {@link http://haml-lang.com/ Haml} class file.
6
+ * @author Chris Yates <chris.l.yates@gmail.com>
7
+ * @copyright Copyright (c) 2010 PBM Web Development
8
+ * @license http://phamlp.googlecode.com/files/license.txt
9
+ * @package PHamlP
10
+ * @subpackage Haml.filters
11
+ */
12
+
13
+ require_once('HamlCssFilter.php');
14
+ require_once(dirname(__FILE__).'/../../sass/SassParser.php');
15
+
16
+ /**
17
+ * {@link Sass http://sass-lang.com/} Filter for
18
+ * {@link http://haml-lang.com/ Haml} class.
19
+ * Parses the text as Sass then calls the CSS filter.
20
+ * Useful for including inline Sass.
21
+ * @package PHamlP
22
+ * @subpackage Haml.filters
23
+ */
24
+ class HamlScssFilter extends HamlBaseFilter {
25
+ /**
26
+ * Run the filter
27
+ * @param string text to filter
28
+ * @return string filtered text
29
+ */
30
+ public function run($text) {
31
+ $sass = new SassParser(array('syntax'=>'scss'));
32
+ $css = new HamlCssFilter();
33
+ $css->init();
34
+
35
+ return $css->run($sass->toCss(preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \1; ?>', $text), false));
36
+ }
37
+ }
@@ -0,0 +1,50 @@
1
+ <?php
2
+ /* SVN FILE: $Id: _HamlMarkdownFilter.php 51 2010-04-14 12:05:03Z chris.l.yates $ */
3
+ /**
4
+ * Markdown Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * This filter is an abstract filter that must be extended.
6
+ *
7
+ * @author Chris Yates <chris.l.yates@gmail.com>
8
+ * @copyright Copyright (c) 2010 PBM Web Development
9
+ * @license http://phamlp.googlecode.com/files/license.txt
10
+ * @package PHamlP
11
+ * @subpackage Haml.filters
12
+ */
13
+
14
+ /**
15
+ * Markdown Filter for {@link http://haml-lang.com/ Haml} class.
16
+ * Parses the text with Markdown.
17
+ *
18
+ * This is an abstract class that must be extended and the init() method
19
+ * implemented to provide the vendorPath if the vendor class is not imported
20
+ * elsewhere in the application (e.g. by a framework) and vendorClass if the
21
+ * default class name is not correct.
22
+ * @package PHamlP
23
+ * @subpackage Haml.filters
24
+ */
25
+ abstract class _HamlMarkdownFilter extends HamlBaseFilter {
26
+ /**
27
+ * @var string Path to Markdown Parser
28
+ */
29
+ protected $vendorPath;
30
+ /**
31
+ * @var string Markdown class
32
+ * Override this value if the class name is different in your environment
33
+ */
34
+ protected $vendorClass = 'MarkdownExtra_Parser';
35
+
36
+ /**
37
+ * Child classes must implement this method.
38
+ * Typically the child class will set $vendorPath and $vendorClass
39
+ */
40
+ public function init() {}
41
+
42
+ /**
43
+ * Run the filter
44
+ * @param string text to filter
45
+ * @return string filtered text
46
+ */
47
+ public function run($text) {
48
+ return '<?php '.(!empty($this->vendorPath)?'require_once "'.$this->vendorPath.'";':'').'$markdown___=new '.$this->vendorClass.'();echo $markdown___->safeTransform("'.preg_replace(HamlParser::MATCH_INTERPOLATION, '".\1."', $text).'");?>';
49
+ }
50
+ }
@@ -0,0 +1,50 @@
1
+ <?php
2
+ /* SVN FILE: $Id: _HamlTextileFilter.php 51 2010-04-14 12:05:03Z chris.l.yates $ */
3
+ /**
4
+ * Textile Filter for {@link http://haml-lang.com/ Haml} class file.
5
+ * This filter is an abstract filter that must be extended.
6
+ *
7
+ * @author Chris Yates <chris.l.yates@gmail.com>
8
+ * @copyright Copyright (c) 2010 PBM Web Development
9
+ * @license http://phamlp.googlecode.com/files/license.txt
10
+ * @package PHamlP
11
+ * @subpackage Haml.filters
12
+ */
13
+
14
+ /**
15
+ * Textile Filter for {@link http://haml-lang.com/ Haml} class.
16
+ * Parses the text with Textile.
17
+ *
18
+ * This is an abstract class that must be extended and the init() method
19
+ * implemented to provide the vendorPath if the vendor class is not imported
20
+ * elsewhere in the application (e.g. by a framework) and vendorClass if the
21
+ * default class name is not correct.
22
+ * @package PHamlP
23
+ * @subpackage Haml.filters
24
+ */
25
+ abstract class _HamlTextileFilter extends HamlBaseFilter {
26
+ /**
27
+ * @var string Path to Textile Parser
28
+ */
29
+ protected $vendorPath;
30
+ /**
31
+ * @var string Textile class
32
+ * Override this value if the class name is different in your environment
33
+ */
34
+ protected $vendorClass = 'Textile';
35
+
36
+ /**
37
+ * Child classes must implement this method.
38
+ * Typically the child class will set $vendorPath and $vendorClass
39
+ */
40
+ public function init() {}
41
+
42
+ /**
43
+ * Run the filter
44
+ * @param string text to filter
45
+ * @return string filtered text
46
+ */
47
+ public function run($text) {
48
+ return '<?php '.(!empty($this->vendorPath)?'require_once "'.$this->vendorPath.'";':'').'$textile___=new '.$this->vendorClass.'();echo $textile___->TextileThis("'.preg_replace(HamlParser::MATCH_INTERPOLATION, '".\1."', $text).'");?>';
49
+ }
50
+ }
@@ -0,0 +1,32 @@
1
+ <?php
2
+ /* SVN FILE: $Id: SassRuleNode.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Message translations.
5
+ *
6
+ * This file is contains the localizable messages for Haml. You may modify this
7
+ * file by translating the messages and saving with the filename language.php
8
+ * where "language" is the language ID of the translations.
9
+ *
10
+ * Each array element represents the translation (value) of a message (key).
11
+ * If the value is empty the message is considered as not translated.
12
+ *
13
+ * NOTE: this file must be saved in UTF-8 encoding.
14
+ *
15
+ * @author Chris Yates <chris.l.yates@gmail.com>
16
+ * @copyright Copyright (c) 2010 PBM Web Development
17
+ * @license http://phamlp.googlecode.com/files/license.txt
18
+ * @package PHamlP
19
+ * @subpackage Haml.messages
20
+ */
21
+ return array (
22
+ 'Attribute must be "class" or "id" with array value'=>'',
23
+ 'Illegal indentation level ({indentLevel}); indentation level can only increase by one'=>'',
24
+ 'Invalid indentation'=>'',
25
+ 'Invalid {what} ({value})'=>'',
26
+ 'Invalid {what} ({value}); must be one of "{options}"'=>'',
27
+ 'Mixed indentation not allowed'=>'',
28
+ 'No getter function for {what}'=>'',
29
+ 'No setter function for {what}'=>'',
30
+ 'Unable to find {what}: {filename}'=>'',
31
+ '{what} must extend {base} class'=>'',
32
+ );
@@ -0,0 +1,32 @@
1
+ <?php
2
+ /* SVN FILE: $Id: SassRuleNode.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Message translations.
5
+ *
6
+ * This file is contains the localizable messages for Haml. You may modify this
7
+ * file by translating the messages and saving with the filename language.php
8
+ * where "language" is the language ID of the translations.
9
+ *
10
+ * Each array element represents the translation (value) of a message (key).
11
+ * If the value is empty the message is considered as not translated.
12
+ *
13
+ * NOTE: this file must be saved in UTF-8 encoding.
14
+ *
15
+ * @author Chris Yates <chris.l.yates@gmail.com>
16
+ * @copyright Copyright (c) 2010 PBM Web Development
17
+ * @license http://phamlp.googlecode.com/files/license.txt
18
+ * @package PHamlP
19
+ * @subpackage Haml.messages
20
+ */
21
+ return array (
22
+ 'Attribute must be "class" or "id" with array value'=>'Attribute müssen "class" oder "id" mit array-wert',
23
+ 'Illegal indentation level ({indentLevel}); indentation level can only increase by one'=>'Illegale einrückungsebene ({indentLevel}); einrückungsebene kann nur von einem anstieg',
24
+ 'Invalid indentation'=>'Ungültige einrückung',
25
+ 'Invalid {what}'=>'Ungültige {what}',
26
+ 'Invalid {what} ({value}); must be one of "{options}"'=>'Ungültige {what} ({value}); muss einer der "{options}"',
27
+ 'Mixed indentation not allowed'=>'Mixed einzug nicht erlaubt',
28
+ 'No getter function for {what}'=>'Kein getter-funktion für {what}',
29
+ 'No setter function for {what}'=>'Kein setter-funktion für {what}',
30
+ 'Unable to find {what}: {filename}'=>'Kann zu finden {what}: {filename}',
31
+ '{what} must extend {base} class'=>'{what} muss {base} klasse erweitern',
32
+ );
@@ -0,0 +1,32 @@
1
+ <?php
2
+ /* SVN FILE: $Id: SassRuleNode.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * Message translations.
5
+ *
6
+ * This file is contains the localizable messages for Haml. You may modify this
7
+ * file by translating the messages and saving with the filename language.php
8
+ * where "language" is the language ID of the translations.
9
+ *
10
+ * Each array element represents the translation (value) of a message (key).
11
+ * If the value is empty the message is considered as not translated.
12
+ *
13
+ * NOTE: this file must be saved in UTF-8 encoding.
14
+ *
15
+ * @author Chris Yates <chris.l.yates@gmail.com>
16
+ * @copyright Copyright (c) 2010 PBM Web Development
17
+ * @license http://phamlp.googlecode.com/files/license.txt
18
+ * @package PHamlP
19
+ * @subpackage Haml.messages
20
+ */
21
+ return array (
22
+ 'Attribute must be "class" or "id" with array value'=>"D'attributs doivent être \"class\" ou \"id\" avec valeur de array",
23
+ 'Illegal indentation level ({indentLevel}); indentation level can only increase by one: {file}::{line}'=>"Niveau niveau d'indentation illégale ({indentLevel}); ne peut augmenter d'un: {file}::{line}",
24
+ 'Invalid indentation: {line}::{file}'=>'Indentation blancs: {line}::{file}',
25
+ 'Invalid {what} ({value}): {file}::{line}'=>'Invalide {what} ({value}): {file}::{line}',
26
+ 'Invalid {what} ({value}); must be one of "{options}".'=>"Invalide {what} ({value}); doit être l'un des \"{options}\"",
27
+ 'Mixed indentation not allowed: {file}::{line}'=>'Indentation mixte pas autorisé: {file}::{line}',
28
+ 'No getter function for {what}'=>'Pas de fonction getter pour {what}',
29
+ 'No setter function for {what}'=>'Pas de fonction setter pour {what}',
30
+ 'Unable to find {what}: {filename}.'=>'Impossible de trouver {what}: {filename}.',
31
+ '{what} must extend {base} class.'=>"{what} doit s'étendre classe {base}",
32
+ );
@@ -0,0 +1,32 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlCompactRenderer.php 74 2010-04-20 12:20:29Z chris.l.yates $ */
3
+ /**
4
+ * HamlCompactRenderer class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.renderers
10
+ */
11
+
12
+ /**
13
+ * HamlCompactRenderer class.
14
+ * Renders blocks on single lines.
15
+ * @package PHamlP
16
+ * @subpackage Haml.renderers
17
+ */
18
+ class HamlCompactRenderer extends HamlRenderer {
19
+ /**
20
+ * Renders the opening tag of an element
21
+ */
22
+ public function renderOpeningTag($node) {
23
+ return ($node->isBlock ? '' : ' ') . parent::renderOpeningTag($node);
24
+ }
25
+
26
+ /**
27
+ * Renders the closing tag of an element
28
+ */
29
+ public function renderClosingTag($node) {
30
+ return parent::renderClosingTag($node) . ($node->isBlock ? "\n" : ' ');
31
+ }
32
+ }
@@ -0,0 +1,48 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlCompressedRenderer.php 74 2010-04-20 12:20:29Z chris.l.yates $ */
3
+ /**
4
+ * HamlCompressedRenderer class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.renderers
10
+ */
11
+
12
+ /**
13
+ * HamlCompressedRenderer class.
14
+ * Output has minimal whitespace.
15
+ * @package PHamlP
16
+ * @subpackage Haml.renderers
17
+ */
18
+ class HamlCompressedRenderer extends HamlRenderer {
19
+ /**
20
+ * Renders the opening of a comment.
21
+ * Only conditional comments are rendered
22
+ */
23
+ public function renderOpenComment($node) {
24
+ if ($node->isConditional) return parent::renderOpenComment($node);
25
+ }
26
+
27
+ /**
28
+ * Renders the closing of a comment.
29
+ * Only conditional comments are rendered
30
+ */
31
+ public function renderCloseComment($node) {
32
+ if ($node->isConditional) return parent::renderCloseComment($node);
33
+ }
34
+
35
+ /**
36
+ * Renders the opening tag of an element
37
+ */
38
+ public function renderOpeningTag($node) {
39
+ return ($node->isBlock ? '' : ' ') . parent::renderOpeningTag($node);
40
+ }
41
+
42
+ /**
43
+ * Renders the closing tag of an element
44
+ */
45
+ public function renderClosingTag($node) {
46
+ return parent::renderClosingTag($node) . ($node->isBlock ? '' : ' ');
47
+ }
48
+ }
@@ -0,0 +1,58 @@
1
+ <?php
2
+ /* SVN FILE: $Id: HamlExpandedRenderer.php 49 2010-04-04 10:51:24Z chris.l.yates $ */
3
+ /**
4
+ * HamlExpandedRenderer class file.
5
+ * @author Chris Yates <chris.l.yates@gmail.com>
6
+ * @copyright Copyright (c) 2010 PBM Web Development
7
+ * @license http://phamlp.googlecode.com/files/license.txt
8
+ * @package PHamlP
9
+ * @subpackage Haml.renderers
10
+ */
11
+
12
+ /**
13
+ * HamlExpandedRenderer class.
14
+ * Blocks are on single lines and content indented.
15
+ * @package PHamlP
16
+ * @subpackage Haml.renderers
17
+ */
18
+ class HamlExpandedRenderer extends HamlRenderer {
19
+ /**
20
+ * Renders the opening tag of an element
21
+ */
22
+ public function renderOpeningTag($node) {
23
+ return parent::renderOpeningTag($node) .
24
+ ($node->whitespaceControl['inner'] ? '' :
25
+ ($node->isSelfClosing && $node->whitespaceControl['outer'] ? '' : "\n"));
26
+ }
27
+
28
+ /**
29
+ * Renders the closing tag of an element
30
+ */
31
+ public function renderClosingTag($node) {
32
+ return ($node->isSelfClosing ? '' : parent::renderClosingTag($node) .
33
+ ($node->whitespaceControl['outer'] ? '' : "\n"));
34
+ }
35
+
36
+ /**
37
+ * Renders content.
38
+ * @param HamlNode the node being rendered
39
+ * @return string the rendered content
40
+ */
41
+ public function renderContent($node) {
42
+ return self::INDENT . parent::renderContent($node) . "\n";
43
+ }
44
+
45
+ /**
46
+ * Renders the start of a code block
47
+ */
48
+ public function renderStartCodeBlock($node) {
49
+ return parent::renderStartCodeBlock($node) . "\n";
50
+ }
51
+
52
+ /**
53
+ * Renders the end of a code block
54
+ */
55
+ public function renderEndCodeBlock($node) {
56
+ return parent::renderEndCodeBlock($node) . "\n";
57
+ }
58
+ }