frontsau 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +30 -0
- data/Rakefile +2 -0
- data/bin/frontsau +15 -0
- data/bin/frontsau-phaml-compiler +35 -0
- data/example/.frontsau +12 -0
- data/example/assets/head.jpg +0 -0
- data/example/assets/script.js +4 -0
- data/example/assets/style.css +6 -0
- data/example/css/includes.sass +2 -0
- data/example/css/style.sass +6 -0
- data/example/image/head.jpg +0 -0
- data/example/index.html +0 -0
- data/example/js/script.coffee +1 -0
- data/frontsau.gemspec +41 -0
- data/lib/Phamlp/Phamlp.php +72 -0
- data/lib/Phamlp/PhamlpException.php +31 -0
- data/lib/Phamlp/haml/HamlException.php +29 -0
- data/lib/Phamlp/haml/HamlHelpers.php +199 -0
- data/lib/Phamlp/haml/HamlParser.php +1250 -0
- data/lib/Phamlp/haml/filters/HamlBaseFilter.php +30 -0
- data/lib/Phamlp/haml/filters/HamlCdataFilter.php +29 -0
- data/lib/Phamlp/haml/filters/HamlCssFilter.php +30 -0
- data/lib/Phamlp/haml/filters/HamlEscapedFilter.php +32 -0
- data/lib/Phamlp/haml/filters/HamlJavascriptFilter.php +31 -0
- data/lib/Phamlp/haml/filters/HamlPhpFilter.php +27 -0
- data/lib/Phamlp/haml/filters/HamlPlainFilter.php +28 -0
- data/lib/Phamlp/haml/filters/HamlPreserveFilter.php +29 -0
- data/lib/Phamlp/haml/filters/HamlSassFilter.php +37 -0
- data/lib/Phamlp/haml/filters/HamlScssFilter.php +37 -0
- data/lib/Phamlp/haml/filters/_HamlMarkdownFilter.php +50 -0
- data/lib/Phamlp/haml/filters/_HamlTextileFilter.php +50 -0
- data/lib/Phamlp/haml/messages/_i18n.php +32 -0
- data/lib/Phamlp/haml/messages/de.php +32 -0
- data/lib/Phamlp/haml/messages/fr.php +32 -0
- data/lib/Phamlp/haml/renderers/HamlCompactRenderer.php +32 -0
- data/lib/Phamlp/haml/renderers/HamlCompressedRenderer.php +48 -0
- data/lib/Phamlp/haml/renderers/HamlExpandedRenderer.php +58 -0
- data/lib/Phamlp/haml/renderers/HamlNestedRenderer.php +77 -0
- data/lib/Phamlp/haml/renderers/HamlRenderer.php +137 -0
- data/lib/Phamlp/haml/tree/HamlCodeBlockNode.php +58 -0
- data/lib/Phamlp/haml/tree/HamlCommentNode.php +41 -0
- data/lib/Phamlp/haml/tree/HamlDoctypeNode.php +27 -0
- data/lib/Phamlp/haml/tree/HamlElementNode.php +52 -0
- data/lib/Phamlp/haml/tree/HamlFilterNode.php +50 -0
- data/lib/Phamlp/haml/tree/HamlHelperNode.php +73 -0
- data/lib/Phamlp/haml/tree/HamlNode.php +253 -0
- data/lib/Phamlp/haml/tree/HamlNodeExceptions.php +19 -0
- data/lib/Phamlp/haml/tree/HamlRootNode.php +58 -0
- data/lib/Phamlp/sass/SassException.php +29 -0
- data/lib/Phamlp/sass/SassFile.php +164 -0
- data/lib/Phamlp/sass/SassParser.php +848 -0
- data/lib/Phamlp/sass/extensions/compass/config.php +65 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/_blueprint.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +101 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_debug.scss +11 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +86 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_form.scss +68 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_grid.scss +249 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_ie.scss +109 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +57 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +37 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +147 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_print.scss +93 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +54 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_typography.scss +104 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +37 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +58 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/ie.sass +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/manifest.rb +30 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/partials/_base.sass +10 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/print.sass +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/basic/screen.sass +12 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/manifest.rb +30 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/print.sass +8 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/project/screen.sass +45 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/grid.png +0 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/ie.sass +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/manifest.rb +33 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_base.sass +10 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_form.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_page.sass +18 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass +38 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/print.sass +5 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/screen.sass +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/_compass.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_css3.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/_utilities.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-size.scss +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_box.scss +112 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_columns.scss +55 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_font-face.scss +33 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_gradient.scss +82 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_opacity.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transform.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_transition.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/reset/_utilities.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_general.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_links.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_lists.scss +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_print.scss +17 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_tables.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/_text.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/ellipsis.sass +9 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/ie.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/manifest.rb +4 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/print.sass +6 -0
- data/lib/Phamlp/sass/extensions/compass/frameworks/compass/templates/project/screen.sass +7 -0
- data/lib/Phamlp/sass/extensions/compass/functions/colourStops.php +268 -0
- data/lib/Phamlp/sass/extensions/compass/functions/constants.php +44 -0
- data/lib/Phamlp/sass/extensions/compass/functions/fontFiles.php +30 -0
- data/lib/Phamlp/sass/extensions/compass/functions/imageSize.php +39 -0
- data/lib/Phamlp/sass/extensions/compass/functions/inlineData.php +84 -0
- data/lib/Phamlp/sass/extensions/compass/functions/lists.php +47 -0
- data/lib/Phamlp/sass/extensions/compass/functions/selectors.php +128 -0
- data/lib/Phamlp/sass/extensions/compass/functions/urls.php +143 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/_compass.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_css3.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_layout.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_reset.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/_utilities.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-clip.scss +43 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss +42 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-size.scss +14 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_border-radius.scss +135 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-shadow.scss +50 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box-sizing.scss +13 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_box.scss +112 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_columns.scss +55 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_font-face.scss +33 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_gradient.scss +96 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_inline-block.scss +12 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_opacity.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_shared.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_text-shadow.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transform.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_transition.scss +85 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/layout/_sticky-footer.scss +23 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/reset/_utilities.scss +133 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_general.scss +6 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_links.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_lists.scss +4 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_print.scss +17 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_tables.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/_text.scss +3 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_clearfix.scss +31 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_float.scss +15 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_hacks.scss +35 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_min.scss +16 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_reset.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tabs.scss +1 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_hover-link.scss +5 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss +28 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +7 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_bullets.scss +34 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +52 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +47 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/lists/_inline-list.scss +29 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +56 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_borders.scss +27 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_ellipsis.scss +25 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_nowrap.scss +2 -0
- data/lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/text/_replacement.scss +34 -0
- data/lib/Phamlp/sass/messages/_i18n.php +122 -0
- data/lib/Phamlp/sass/messages/de.php +70 -0
- data/lib/Phamlp/sass/messages/fr.php +70 -0
- data/lib/Phamlp/sass/renderers/SassCompactRenderer.php +130 -0
- data/lib/Phamlp/sass/renderers/SassCompressedRenderer.php +102 -0
- data/lib/Phamlp/sass/renderers/SassExpandedRenderer.php +62 -0
- data/lib/Phamlp/sass/renderers/SassNestedRenderer.php +61 -0
- data/lib/Phamlp/sass/renderers/SassRenderer.php +51 -0
- data/lib/Phamlp/sass/script/SassScriptFunction.php +169 -0
- data/lib/Phamlp/sass/script/SassScriptFunctions.php +751 -0
- data/lib/Phamlp/sass/script/SassScriptLexer.php +114 -0
- data/lib/Phamlp/sass/script/SassScriptOperation.php +151 -0
- data/lib/Phamlp/sass/script/SassScriptParser.php +192 -0
- data/lib/Phamlp/sass/script/SassScriptParserExceptions.php +40 -0
- data/lib/Phamlp/sass/script/SassScriptVariable.php +57 -0
- data/lib/Phamlp/sass/script/literals/SassBoolean.php +67 -0
- data/lib/Phamlp/sass/script/literals/SassColour.php +886 -0
- data/lib/Phamlp/sass/script/literals/SassLiteral.php +359 -0
- data/lib/Phamlp/sass/script/literals/SassLiteralExceptions.php +47 -0
- data/lib/Phamlp/sass/script/literals/SassNumber.php +503 -0
- data/lib/Phamlp/sass/script/literals/SassString.php +106 -0
- data/lib/Phamlp/sass/tree/SassCommentNode.php +64 -0
- data/lib/Phamlp/sass/tree/SassContext.php +120 -0
- data/lib/Phamlp/sass/tree/SassDebugNode.php +84 -0
- data/lib/Phamlp/sass/tree/SassDirectiveNode.php +76 -0
- data/lib/Phamlp/sass/tree/SassElseNode.php +28 -0
- data/lib/Phamlp/sass/tree/SassExtendNode.php +47 -0
- data/lib/Phamlp/sass/tree/SassForNode.php +99 -0
- data/lib/Phamlp/sass/tree/SassIfNode.php +95 -0
- data/lib/Phamlp/sass/tree/SassImportNode.php +69 -0
- data/lib/Phamlp/sass/tree/SassMixinDefinitionNode.php +88 -0
- data/lib/Phamlp/sass/tree/SassMixinNode.php +91 -0
- data/lib/Phamlp/sass/tree/SassNode.php +342 -0
- data/lib/Phamlp/sass/tree/SassNodeExceptions.php +117 -0
- data/lib/Phamlp/sass/tree/SassPropertyNode.php +239 -0
- data/lib/Phamlp/sass/tree/SassRootNode.php +100 -0
- data/lib/Phamlp/sass/tree/SassRuleNode.php +337 -0
- data/lib/Phamlp/sass/tree/SassVariableNode.php +90 -0
- data/lib/Phamlp/sass/tree/SassWhileNode.php +64 -0
- data/lib/frontsau/assets/rack.rb +12 -0
- data/lib/frontsau/assets/sprockets.rb +59 -0
- data/lib/frontsau/assets/static_assets_compiler.rb +50 -0
- data/lib/frontsau/assets/url_rewriter.rb +22 -0
- data/lib/frontsau/assets/watcher.rb +60 -0
- data/lib/frontsau/thor_app.rb +118 -0
- data/lib/frontsau/version.rb +3 -0
- data/lib/frontsau.rb +64 -0
- 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", '
',
|
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
|
+
}
|