Boo On Rails
For the last couple of days I've been working on providing an extention to MonoRail that would allow the use of Boo to code the views for the application (MonoRail supports any .Net language for writing the controllers and models, so Boo was already supported there).
I made some blind turns and mistakes, but I learned quite a lot about the internals of Boo. The help of both the Boo and MonoRail communities has been timely, accurate and invaluable, so I would like to take this opportunity to thanks them for that.
I think that I'm over most of the rough spots for now, I got a code that takes a Boo script and send its output to the browser (well, that is something that is actually something that already exists in the examples in Boo's repository. But my version does a little bit more). Now that I've the foundation I can start writing the code that will make it a full feldged view engine in MonoRail.
I have to mention that Boo's open pipeline architecture is simply amazing. It allows you to manipulate the compiler's output while you are compiling. So you can tell the compiler that whenever it sees a statement like:
It would turn it to this code:
And that is the least of it! Very educating and very exciting!
Comments
Comment preview