Skip to content

ability to set the location of slimrb binary #1

@arkarkark

Description

@arkarkark

I'd really like the ability to specify where the slimrb binary is. is that possible?

My project is a jruby/rails via rvm which means that when slimrb fires up on the command line it takes ages to start up because it fires up java.

in /usr/local/bin/slimrb I have this:

#!/bin/bash
source $HOME/.rvm/scripts/rvm
rvm use ruby >/dev/null
$HOME/.rvm/gems/ruby-2.1.2/gems/slim-2.0.3/bin/slimrb "$@"

This runs nice and fast, but no matter what I do to my path before starting karma this one isn't used by karma-slim-preprocessor.

If I edit line 14 in slim2html.js to be this
child = spawn("/usr/local/bin/slimrb", [origPath])
everything works great for me.

Do you know of a way for me to force use of a specific slimrb?

I feel bad opening the first issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions