You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Sun, Jul 20, 2014 at 9:00 AM, Stefan Geneshky wrote:
Hey Maurice,
I want to use Text::Forge for a project, and I have a quick question for you:
I need to be able to change the <% and %> tags, so I can have >>JavaScript templates (which use the same tags) in the same file.
The start and end tags are hard-coded in the _parse function. I thought I could add them as >>attributes to the constructor, however it seems that the _parse function itself is invoked via the class >>name, and not with a blessed reference.
Is there are good reason for this? Could I change the _parse function to a method and add >>attributes to customize the start and end tags?
No, no good reason that I can see. And in fact _compile is calling _parse as an instance method >already. So I think we can just rename $class to $self there.
I'd be interested in folding your changes into the module, so let me know what you come up with.
Maurice
The text was updated successfully, but these errors were encountered:
From @Naturalist:
The text was updated successfully, but these errors were encountered: