{"id":13612174,"url":"https://github.com/slim-template/jekyll-slim","last_synced_at":"2025-04-13T11:31:39.124Z","repository":{"id":19320841,"uuid":"22559081","full_name":"slim-template/jekyll-slim","owner":"slim-template","description":"A gem that adds slim-lang support to Jekyll.","archived":true,"fork":true,"pushed_at":"2019-03-06T16:58:29.000Z","size":48,"stargazers_count":33,"open_issues_count":5,"forks_count":18,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-07T20:41:47.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sunnyrjuneja/jekyll-slim","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slim-template.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-02T22:33:57.000Z","updated_at":"2024-05-17T16:42:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/slim-template/jekyll-slim","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slim-template%2Fjekyll-slim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slim-template%2Fjekyll-slim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slim-template%2Fjekyll-slim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slim-template%2Fjekyll-slim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slim-template","download_url":"https://codeload.github.com/slim-template/jekyll-slim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705669,"owners_count":21148574,"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":[],"created_at":"2024-08-01T20:00:23.975Z","updated_at":"2025-04-13T11:31:38.786Z","avatar_url":"https://github.com/slim-template.png","language":"CSS","funding_links":[],"categories":["Markup \u0026 Markdown Converters"],"sub_categories":[],"readme":"# Jekyll-slim\n\n[![Gem Version](http://img.shields.io/gem/v/jekyll-slim.svg?style=flat)](#)\n[![Dependency\nStatus](http://img.shields.io/gemnasium/slim-template/jekyll-slim.svg?style=flat)](https://gemnasium.com/slim-template/jekyll-slim)\n[![Code\nClimate](http://img.shields.io/codeclimate/github/slim-template/jekyll-slim.svg?style=flat)](https://codeclimate.com/github/slim-template/jekyll-slim)\n[![Build Status](http://img.shields.io/travis/slim-template/jekyll-slim.svg?style=flat)](https://travis-ci.org/slim-template/jekyll-slim)\n\nA gem that adds [slim-lang](http://slim-lang.com) support to [Jekyll](http://github.com/mojombo/jekyll). Works for for pages, includes and layouts.\n\n## Installation\n\nAdd this line to your Gemfile:\n\n    gem 'jekyll-slim'\n    gem 'slim', github: 'slim-template/slim'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jekyll-slim\n\nIn your Jekyll project's `_plugins` directory:\n\n    # _plugins/jekyll-slim.rb\n    require 'jekyll-slim'\n\n### Important!\n\nThis gem requires slim from the github master branch for now.\n\n## Usage\n\nThe gem will convert all the `.slim` files in your project's directory into HTML. That includes files in sub-directories, includes and layouts. Example:\n\n```slim\n# _layouts/default.slim\nhtml\n  head\n  body\n    .content-wrapper {{ content }}\n```\nTo include a partial, use the `slim` liquid tag instead of `include`:\n\n```slim\n# index.slim\n---\nlayout: default\n---\n\nsection.content Content goes here.\n% include footer.slim\n\n```\n\n### Options\n\nIs possible to set options available for Slim engine through the `slim` key in `_config.yml`. Example:\n\n```yaml\n# _config.yml\nslim:\n  pretty: true\n  format: html5\n```\n\n### Context\n\nThe slim context is set to acess a `SlimContext` object which has a `site` method, used to access `config`. Be careful because this is a breaking change.\n\nThis allows you to access configuration information in your slim file. Example:\n\n```slim\nhtml\n  head\n  body\n    .content-wrapper\n      = \"slim pretty mode: #{ site.config['slim']['pretty'].to_s }\"\n```\n\nThe `SlimContext` object will be kept across calls, allowing you to easily set\n`@instance_variables` that can be accessed by **all slim files** even those included with the `slim`\nliquid tag. Those are more or less global variables in slim templates, so be careful when you use them.\n\n## Looking for maintainers\n\nWe are looking for maintainers for this gem.\n\n## Credit\n\nJekyll-slim was heavily inspired by [jekyll-haml](https://github.com/samvincent/jekyll-haml). It is free software, and may be redistributed under the terms specified in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslim-template%2Fjekyll-slim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslim-template%2Fjekyll-slim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslim-template%2Fjekyll-slim/lists"}