https://github.com/redding/dassets-erubi
Dassets engine to compile ERB using Erubi.
https://github.com/redding/dassets-erubi
dassets engine erb erubi
Last synced: about 1 year ago
JSON representation
Dassets engine to compile ERB using Erubi.
- Host: GitHub
- URL: https://github.com/redding/dassets-erubi
- Owner: redding
- License: mit
- Created: 2020-12-27T18:10:45.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T14:54:39.000Z (over 5 years ago)
- Last Synced: 2025-03-18T05:57:28.608Z (over 1 year ago)
- Topics: dassets, engine, erb, erubi
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dassets::Erubi
Dassets [engine](https://github.com/redding/dassets#compiling) to compile dynamic asset files written with ERB using [Erubi](https://github.com/jeremyevans/erubi).
This is a clone of [Dassets::Erb](https://github.com/redding/dassets-erb) but uses Erubi to do the compilation.
## Usage
Register the engine:
```ruby
# in config/assets.rb
require "dassets"
require "dassets-erubi"
Dassets.configure do |c|
c.source "/path/to/assets") do |s|
s.engine "erb", Dassets::Erubi::Engine
end
end
```
Add `.erb` to any source files in your source path. Dassets will compile their content using Erubi, remove the `.erb` extension, and write the output to the output path.
## Installation
Add this line to your application's Gemfile:
gem "dassets-erubi"
And then execute:
$ bundle
Or install it yourself as:
$ gem install dassets-erubi
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am "Added some feature"`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request