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

Ruby gem for imba? #13

Closed
victorbojica opened this issue Aug 21, 2015 · 9 comments
Closed

Ruby gem for imba? #13

victorbojica opened this issue Aug 21, 2015 · 9 comments
Labels

Comments

@victorbojica
Copy link

Is there any way this can be ported to gem for ruby (since they are very alike) ? Thx.

@judofyr
Copy link
Collaborator

judofyr commented Aug 21, 2015

Do you want to have support for it in the asset pipeline? I've been thinking about creating a gem for that.

@victorbojica
Copy link
Author

Either way. As long as i don't have to use node. I've tried taking a look and maybe do it myself, but i never created a gem and i'm a bit confused on this topic. I can help tough.

@krazyjakee
Copy link

@judofyr Ooh ooh me me yes please. Asset pipeline please. Thank you 👯

@judofyr
Copy link
Collaborator

judofyr commented Sep 3, 2015

I've started working on it.

Source gem: https://github.com/judofyr/imba-source
Compiler gem: https://github.com/judofyr/imba-template

Next up is a Rails plugin.

@krazyjakee
Copy link

@judofyr big hype, thank you 🍰

@judofyr
Copy link
Collaborator

judofyr commented Sep 3, 2015

And the Rails gem is here: https://github.com/judofyr/imba-rails.

Now I'm only blocking on #23.

@judofyr
Copy link
Collaborator

judofyr commented Sep 4, 2015

Pushed: https://rubygems.org/gems/imba-rails.

See https://github.com/judofyr/imba-rails for usage and bug reports.

@judofyr judofyr closed this as completed Sep 4, 2015
@somebee
Copy link
Member

somebee commented Sep 4, 2015

def app
    #app

In this example (from imba-rails) app would be a local function, unless you compile with --bare option. Is this intentional? It seems as calling app() from outside in the view would result in an error (undefined function)? Or maybe I don't fully understand the example.

@judofyr
Copy link
Collaborator

judofyr commented Sep 4, 2015

Oops. Very good point. I was testing the bare-functionality and didn't update the README/code. Updated it now to say def window.app.

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

No branches or pull requests

4 participants