I hate it when I have to deal with quote escaping in PHP templates. This happens a lot when I use the javascript_tag() helper, and pass my JavaScript code as a string:
<?php echo javascript_tag("
function foo()
{
alert(\"bar\");
return false;
}
") ?>
What would be really convenient is to adapt the javascript_tag() helper to work like the slot() helper. That way I could write:
<?php javascript_tag() ?>
function foo()
{
alert("bar");
return false;
}
<?php end_javascript_tag() ?>
A BC change would just have the helper act as mentioned when passed no argument. The patch is trivial. Incidentally, I would also gain JavaScript syntax highlighting in my favorite text editor.