Skip to content
A Jekyll plugin to make AngularJS play nice.
Ruby HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
jekyll-angular.gemspec

README.md

Jekyll-Angular

A Jekyll plugin to make AngularJS play nice.

Why?

Unfortunately, Jekyll and Angular don't usually work well together...

<div ng-controller="foo">
  <p>{{ bar }}</p>
</div>

Gets turned into:

<div ng-controller="foo">
  <p></p>
</div>

Why? Because Jekyll interperets {{ brackets }} as Liquid. How do we fix this? This plugin.

Getting Started

Install the gem.

# Gemfile

gem 'jekyll-angular'
$ bundle install

Add the plugin to your config.

# _config.yml
plugins:
  - jekyll-angular

Use the plugin for cool Angular stuff.

<div ng-controller="foo">
  <p>{{ 'bar' | angular }}</p>
</div>

Gets processed into...

<div ng-controller="foo">
  <p>{{ bar }}</p>
</div>
You can’t perform that action at this time.