Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects, not classes #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Objects, not classes #2

wants to merge 4 commits into from

Conversation

glv
Copy link
Contributor

@glv glv commented Oct 6, 2010

I did have a chance to look at this some more last night. I refactored it so that just one line of code has to be in the source string that's returned from compile, and it uses instances rather than subclasses to do all the work.

@glv
Copy link
Contributor Author

glv commented Oct 6, 2010

Your note made me realize that I might not be reloading template files correctly after a change, and I wasn't. That's fixed, and while I was at it it was easy to separate the Velocity-specific parts from the Rails-specific parts, although the Rails-specific class still knows about VelocityContext. That could easily be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant