Donate Share

phpHaml

Code

Programming Languages: PHP

License: MIT License

Repositories

browse code, statistics, last commit on 2007-07-25 svn co https://phphaml.svn.sourceforge.net/svnroot/phphaml phphaml

Show:

What's happening?

  • Sass support

    I would like support for Sass (which is the css companion bundled with the ruby Haml).

    2009-10-12 14:08:05 UTC by nobody

  • Comment: dashes in classes or ids

    here is the fix // Match ID if (preg_match('/'.self::TOKEN_ID.'([a-zA-Z0-9_\\-]*)/', $sToParse, $aMatches)) $aAttributes['id'] = "'{$aMatches[1]}'"; // Match classes if (preg_match_all('/\\'.self::TOKEN_CLASS.'([a-zA-Z0-9_\\-]*)/', $sToParse, $aMatches)) $aAttributes['class'] = '\''.implode(' ', $aMatches[1]).'\'';.

    2009-05-18 03:34:00 UTC by nobody

  • dashes in classes or ids

    Any classes that have dashes seem to be having them removed.

    2009-05-18 03:26:58 UTC by nobody

  • commas in attributes

    When it encounters a comma in an attribute like having multiple media types for css like media = 'screen, projection' it thinks the second item in the string is a new attribute and screws up.

    2009-05-17 17:58:11 UTC by nobody

  • Comment: HAML if else bug

    There is also a problem with nested php. 6 %body 7 %h1= $title 8 %h3= $text 9 -if ($some_condition) 10 %p Short answer 11 -if( $another_conditon ) 12 %p more details produces this: Short answer -if( $another_conditon ) more details ...

    2009-05-11 15:30:34 UTC by nobody

  • i18n problem while using writeAttributes.

    Problem: i18n problem at writeAttributes. htmlentities encodes UTF-8 data. Solution: replace "htmlentities" with "htmlspecialchars".

    2009-04-21 12:58:21 UTC by yuri-baburov

  • HAML if else bug

    %tr - if (!empty($page->title)) %th Title - else %th Title err %td= $page->title It is compiled to: Title Title err But it doesn't work because of the syntax error:

    2009-01-26 08:13:06 UTC by mennanov

  • phpHaml

    alfanick committed revision 90 to the phpHaml SVN repository, changing 1 files.

    2007-07-25 05:18:09 UTC by alfanick

  • phpHaml

    alfanick committed revision 89 to the phpHaml SVN repository, changing 12 files.

    2007-07-09 16:14:51 UTC by alfanick

  • phpHaml

    alfanick committed revision 88 to the phpHaml SVN repository, changing 2 files.

    2007-07-09 09:59:17 UTC by alfanick

Our Numbers