Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redding/dassets-erb
Dassets engine to compile ERB.
https://github.com/redding/dassets-erb
dassets engine erb
Last synced: about 9 hours ago
JSON representation
Dassets engine to compile ERB.
- Host: GitHub
- URL: https://github.com/redding/dassets-erb
- Owner: redding
- License: mit
- Created: 2013-06-14T12:12:08.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T14:50:47.000Z (almost 4 years ago)
- Last Synced: 2024-03-14T12:49:40.589Z (8 months ago)
- Topics: dassets, engine, erb
- Language: Ruby
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dassets::Erb
Dassets [engine](https://github.com/redding/dassets#compiling) to compile dynamic asset files written with ERB.
See [Dassets::Erubi](https://github.com/redding/dassets-erubi) for a clone that uses [Erubi](https://github.com/jeremyevans/erubi) to do the compilation.
## Usage
Register the engine:
```ruby
# in config/assets.rb
require "dassets"
require "dassets-erb"Dassets.configure do |c|
c.source "/path/to/assets") do |s|
s.engine "erb", Dassets::Erb::Engine
end
end
```Add `.erb` to any source files in your source path. Dassets will compile their content using Erb, remove the `.erb` extension, and write the output to the output path.
## Installation
Add this line to your application's Gemfile:
gem 'dassets-erb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dassets-erb
## 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