{"id":26800427,"url":"https://github.com/clearwater-rb/roda-opal_assets","last_synced_at":"2025-07-04T23:05:53.466Z","repository":{"id":56892549,"uuid":"62483174","full_name":"clearwater-rb/roda-opal_assets","owner":"clearwater-rb","description":"Easy Opal asset compilation for Roda","archived":false,"fork":false,"pushed_at":"2024-03-17T04:14:48.000Z","size":26,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-27T09:17:32.202Z","etag":null,"topics":["assets","front-end","opal","roda","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clearwater-rb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-03T05:43:42.000Z","updated_at":"2024-04-27T20:29:46.000Z","dependencies_parsed_at":"2025-04-23T00:14:35.509Z","dependency_job_id":"0e017e12-8c3e-42b2-9787-c31776fc2dc6","html_url":"https://github.com/clearwater-rb/roda-opal_assets","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/clearwater-rb/roda-opal_assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearwater-rb%2Froda-opal_assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearwater-rb%2Froda-opal_assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearwater-rb%2Froda-opal_assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearwater-rb%2Froda-opal_assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clearwater-rb","download_url":"https://codeload.github.com/clearwater-rb/roda-opal_assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearwater-rb%2Froda-opal_assets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263223070,"owners_count":23433045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assets","front-end","opal","roda","ruby"],"created_at":"2025-03-29T20:17:15.147Z","updated_at":"2025-07-04T23:05:53.447Z","avatar_url":"https://github.com/clearwater-rb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roda::OpalAssets\n\nSimple compilation for Opal apps on the Roda web framework for Ruby.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'roda-opal_assets'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install roda-opal_assets\n\n## Usage\n\nIn your Roda app:\n\n```ruby\nclass App \u003c Roda\n  assets = Roda::OpalAssets.new\n\n  route do |r|\n    assets.route r\n\n    # Other routes here\n  end\n\n  define_method(:js)         { |file| assets.js file }\n  define_method(:stylesheet) { |file| assets.stylesheet file }\nend\n```\n\nThen you can put your Ruby and JS assets in `assets/js` and your stylesheets in `assets/css`.\n\nInside your views, you just need to call the `js` and `stylesheet` methods above. Here is an example `layout.slim` template:\n\n```slim\ndoctype 5\nhtml\n  head\n    title My App\n    == js 'app'\n\n  body= yield\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/clearwater-rb/roda-opal_assets. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearwater-rb%2Froda-opal_assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearwater-rb%2Froda-opal_assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearwater-rb%2Froda-opal_assets/lists"}