Open starrychloe opened 9 years ago
This doesn't work:
.star-rating{title: $rating, data-url: $model->url}
Yields
syntax error, unexpected ':' <div <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'star-rating'), array('title', $rating), MtHaml\Runtime\AttributeList::create((data-url: $model->url))), 'html5', 'UTF-8'); ?>>
Neither does this:
.star-rating{title: $rating, 'data-url': $model->url}
syntax error, unexpected ':' <div <?php echo MtHaml\Runtime::renderAttributes(array(array('class', 'star-rating'), array('title', $rating), MtHaml\Runtime\AttributeList::create(('data-url': $model->url))), 'html5', 'UTF-8'); ?>>
Got this to work:
.star-rating{:title => $rating, 'data-url' => $model->url}
This doesn't work:
Yields
Neither does this:
Yields