Skip to content

sunnyrjuneja/jekyll-slim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll-slim

Gem Version

A gem that adds slim-lang support to Jekyll. Works for for pages, includes and layouts.

Installation

Add this line to your Gemfile:

gem 'jekyll-slim'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-slim

In your Jekyll project's _plugins directory:

# _plugins/bundler.rb
require 'rubygems'
require 'bundler/setup'
Bundler.require(:default)

Usage

The gem will convert all the .slim files in your project's directory into HTML. That includes files in sub-directories, includes and layouts. Example:

# _layouts/default.slim
html
  head
  body
    .content-wrapper
      | {{ content }}
# index.slim
---
layout: default
---

section.content
  | {% include footer.slim %}

Credit

Jekyll-slim was heavily inspired by jekyll-haml. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

A gem that adds slim-lang support to Jekyll.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages