Skip to content

About

A Jekyll plugin to make AngularJS play nice.

Resources

Stars

38 stars

Watchers

5 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

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>

About

A Jekyll plugin to make AngularJS play nice.

Resources

Stars

38 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages