0.0
No commit activity in last 3 years
No release in over 3 years
Asset tag helpers for Eldr apps and Rack Apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
= 0.6.3
= 10.4.2
= 3.1.0
= 0.28.0
= 3.0.1

Runtime

 Project Readme

Eldr::Assets Build Status Code Climate Coverage Status Dependency Status Inline docs Gratipay

Asset tag helpers for Eldr and Rack Apps

Installation

Add this line to your application's Gemfile:

gem 'eldr-assets'

And then execute:

$ bundle

Or install it yourself as:

$ gem install eldr-assets

Usage

Include it, call render(), and then call the helpers in your template:

App:

class App < Eldr::App
  include Eldr::Assets
  set :view_dir,    File.join(__dir__, 'views')
  set :assets_path, File.join(__dir__, 'assets')

  get '/' do
    render 'index'
  end
end

Then in your view do:

html
  head
    == js 'app'
    == css3 'app'

See examples/app.ru for an example app.

Contributing

  1. Fork. it
  2. Create. your feature branch (git checkout -b cat-evolver)
  3. Commit. your changes (git commit -am 'Add Cat Evolution')
  4. Test. your changes (always be testing)
  5. Push. to the branch (git push origin cat-evolver)
  6. Pull. Request. (for extra points include funny gif and or pun in comments)

To remember this you can use the easy to remember and totally not tongue-in-check initialism: FCCTPP.

I don't want any of these steps to scare you off. If you don't know how to do something or are struggle getting it to work feel free to create a pull request or issue anyway. I'll be happy to help you get your contributions up to code and into the repo!

License

Licensed under MIT by K-2052.