Closed 4lex1v closed 10 years ago
Thanks, for doing another round of updates. I've just finished a merge that tried to make your older changes also work for Scala 2.9. I'll see if that still works for this one.
Do you know in how far this version is still compatible with the old one?
They did some API changes and improvements, but code still should be compatible with scala 2.9, i didn't notice any 2.10 features. They have little changes in the compiler, e.g my previous twirl version and latest Play version). Although it's easy to make it fully compatible, i didn't want to touch original play implementation of the compiler or it would be harder to update it further.
From looking at the history it seems they merely changed the formatting and made small changes to the runtime classes. My main concern was that there were some changes that changed the syntax itself but it seems that didn't happen at all. Now I'll "just" have to do a re-merge of your changes and see where this will lead us to...
It seems I spoke to soon, there's lots more history that was hidden behind file renamings, so there have been more changes.
Well, templates (scala.html files) in tests doesn't have any changes in syntax, so, i guess, there were no changes with template syntax.
I incorporated your commits into the below sbt-0.13 branch and added a bit of compatibility stuff so that it also compiles for Scala 2.9.x. Can you try the new 0.7.0-SNAPSHOT
version? You'll probably have to add this resolver to plugins.sbt
:
resolvers += Classpaths.sbtPluginSnapshots
sbt 0.13 branch: https://github.com/spray/twirl/commits/i/15/try-to-convert-to-sbt-0.13
I've also did some quick code style fixes and updated build dependencies. Twirl updated to this commit