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

Support for a custom preamble #54

Merged
merged 2 commits into from
Sep 3, 2011
Merged

Conversation

dblock
Copy link
Contributor

@dblock dblock commented Aug 30, 2011

I realized that #52 has this feature in it with specs, but you might want this feature in first.

You can generate a custom preamble using a code block. For example, you can replace the location of the original .coffee file by a relative one to Rails.root.

    Barista.add_preamble do |location|
        "/* : DO NOT MODIFY - compiled from #{Pathname.new(location).relative_path_from(Rails.root).to_s}\n\n"
    end

Sutto added a commit that referenced this pull request Sep 3, 2011
@Sutto Sutto merged commit 930db88 into Sutto:master Sep 3, 2011
@Sutto
Copy link
Owner

Sutto commented Sep 3, 2011

Awesome, thanks!

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

Successfully merging this pull request may close these issues.

2 participants