Thanks Norman.
One of the reasons I wanted to do this was to use PHP includes or requires
in a HAML file (like "nav.php", "footer.php" etc.). I find this will not
really be feasible though because if an open tag is left in a HAML file,
then HAML will close all the tags above it as the file is compiled.
I now see it is possible to instead have a HAML file include other files
("partials") via "render". I am installing XCode along with Rails to try to
enable this on my Mac..
On Monday, 24 June 2013 18:28:26 UTC+1, Norman Clarke wrote:
>
> On Mon, Jun 24, 2013 at 2:15 PM, anotherhamluser
> <[email protected]<javascript:>
> > wrote:
>
>>
>> I'm using HAML via CodeKit.
>>
>> I see it is possible to intermingle PHP code with HAML and it works fine.
>> But how to get HAML to output the resulting file with a .php extension
>> rather than an .html extension? Is this possible?
>>
>>
> It sounds like you'd need to configure something in CodeKit. There's
> actually nothing in Haml that makes it choose the output file extension -
> in fact, Haml doesn't even write files at all, it leaves that to whatever
> library is using Haml.
>
> -Norman
>
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/haml.
For more options, visit https://groups.google.com/groups/opt_out.