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
Add support for rails 3 #13
Comments
does it support rails 3 already? if not, is there a fork or other repo available? anyone an idea? |
I haven't hacked on this project for a while. - so there is no explicit support for it yet (although as always, patches welcome!) Check out the garlic.rb file and https://github.com/markaby/markaby/blob/master/lib/markaby/rails.rb#L24 We should probably drop rails 1.x support and possibly even 2.x support and just get 3.x working going forward. |
I've been working on https://github.com/camping/mab/ (which is a re-implementation of Markaby). Considering adding Rails 3 support… |
Cool. I'd totally support it and shut this project down if we can get the test suite running there (feature parity, minus rails 1.x and 2.x support, but plus 3.x support going forward). |
|
Mab isn't 100% API compatible with Markaby (e.g. Mab escaped |
Out of curiosity, why port it instead of just fixing it (aside from the escaping change)? |
The main goal of Mab (or really, Rumble) was to allow mixing it into other classes: class Hello
include Mab::Mixin
def render
mab { strong @title }
end
end It seemed simpler to start from scratch (it's about ~200 LoC now) than to change Markaby completely. |
Oh. Isn't this what the kernel method does? https://github.com/markaby/markaby/blob/master/lib/markaby/kernel_method.rb Couldn't we just make that into a mixin instead of adding it directly to kernel? |
But yeah - if it runs a lot faster I'm all for it. Markaby seems to have a lot of layers and runs pretty slowly, so as long as it's mostly compatible and has rails support I'm a go. |
@mattherick: I've pushed out a new version of Mab (0.0.3) that supports Rails. Simply |
@judofyr: Thx for the quick update! |
@judofyr: is your solution also ruby 1.9 compatible? If not, is it much work to get it compatible? |
Yes, it's 1.9 compatible. |
Closing this. @judofyr I've given you commit access. Not sure if you are still using markaby or if you are using mab. I'm starting to work on markaby again as I'm using it in a rails project. |
No description provided.
The text was updated successfully, but these errors were encountered: