-
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
-
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
-
Any classes that have dashes seem to be having them removed.
2009-05-18 03:26:58 UTC by nobody
-
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
-
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
-
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
-
%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
-
alfanick committed revision 90 to the phpHaml SVN repository, changing 1 files.
2007-07-25 05:18:09 UTC by alfanick
-
alfanick committed revision 89 to the phpHaml SVN repository, changing 12 files.
2007-07-09 16:14:51 UTC by alfanick
-
alfanick committed revision 88 to the phpHaml SVN repository, changing 2 files.
2007-07-09 09:59:17 UTC by alfanick