{"id":15152703,"url":"https://github.com/paulrex/jade-rails","last_synced_at":"2025-09-29T23:32:14.467Z","repository":{"id":23875382,"uuid":"27254265","full_name":"paulrex/jade-rails","owner":"paulrex","description":"Jade adapter for Rails asset pipeline","archived":true,"fork":false,"pushed_at":"2016-06-06T03:26:10.000Z","size":199,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-05T02:34:58.260Z","etag":null,"topics":["jade","jade-templates","jst","pug","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulrex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-28T06:18:10.000Z","updated_at":"2023-08-01T19:58:28.000Z","dependencies_parsed_at":"2022-08-22T06:30:35.730Z","dependency_job_id":null,"html_url":"https://github.com/paulrex/jade-rails","commit_stats":null,"previous_names":["mahipal/jade-rails"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulrex%2Fjade-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulrex%2Fjade-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulrex%2Fjade-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulrex%2Fjade-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulrex","download_url":"https://codeload.github.com/paulrex/jade-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":218819613,"owners_count":16392700,"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":["jade","jade-templates","jst","pug","rails","ruby"],"created_at":"2024-09-26T16:21:27.217Z","updated_at":"2025-09-29T23:32:09.143Z","avatar_url":"https://github.com/paulrex.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby on Rails Integration with Jade\n\nThis gem provides integration for Ruby on Rails projects with the [Jade\ntemplating language](http://jade-lang.com/).\n\nCombined with the JST engine built in to Sprockets, you can use this gem\nto render Jade templates anywhere on the front end of your Rails app.\n\n## Installing\n\nAdd to your Gemfile:\n\n```ruby\ngem 'jade-rails', '~\u003e 1.11.0.1'\n```\n\nIn your `application.js`, require the Jade runtime before any files that include\nJade templates.\n\n```\n//= require jade/runtime\n```\n\n## Configuring\n\nUse `config.jade` in your application or environment files to set compilation\noptions. These will be passed to the Jade compiler for all your templates.\n\nThis gem supports only a subset of the full list of Jade compiler options,\nbecause only some of them make sense for client-side compilation within Rails.\n\n### Available Options\n\n- `pretty`: Add whitespace to the compiled HTML to make it slightly easier to\n  read. This defaults to `true` in development and `false` otherwise.\n\n- `self`: Use a `self` namespace to hold locals in compiled templates. This\n  defaults to `false` in all environments.\n\n- `compile_debug`: Compile templates with debugging instrumentation. (This is\n  passed as `compileDebug` to the Jade compiler.) It defaults to `true` in\n  development and `false` otherwise.\n\n- `globals`: This is an array of globals (as strings) that will be made\n  available in the local scope of compiled templates. It defaults to `[]`.\n\nIn addition, the `filename` of the template being compiled is always passed in\nto the Jade compiler options. If `compile_debug` is set to `true`, the filename\nwill be shown as part of the error output.\n\nSee [the official Jade documentation](http://jade-lang.com/api/) for more\ndetails about these options.\n\n## Example\n\nIn `config/application.rb`:\n\n```ruby\nAmazingProject::Application.configure do\n  config.jade.pretty = true\n  config.jade.compile_debug = true\n  config.jade.globals = ['helpers']\nend\n```\n\nIn `app/assets/javascripts/templates/amazing_template.jst.jade`:\n\n```jade\nh1 Jade: A Template Engine\np.lead.\n  Jade is a terse and simple templating language with a strong focus on\n  performance and powerful features.\n```\n\nThen you can render this template anywhere in your JS code:\n\n```javascript\nJST['templates/amazing_template']()\n```\n\n## Notes\n\nIncludes are not supported. Instead, use JST along with Jade's functionality\nfor unescaped buffered code. For example, to \"include\" another template named\n`includes/header.jst.jade` which renders with no locals, write:\n\n```jade\n!= JST['includes/header']()\n```\n\n## Running Tests\n\n```bash\nbundle exec rake test\n```\n\n## Versioning\n\nThe `jade-rails` gem version always reflects the version of Jade it contains,\nwith an additional number for gem-specific changes.\n\nAlways check [the Jade change log](http://jade-lang.com/history/) when upgrading.\n\n## Code Status\n\n[![Gem Version](https://badge.fury.io/rb/jade-rails.svg)](http://badge.fury.io/rb/jade-rails)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulrex%2Fjade-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulrex%2Fjade-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulrex%2Fjade-rails/lists"}