🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

tilt-twig

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tilt-twig

0.0.1
Rubygems
Version published
Maintainers
1
Created
Source

Tilt::Twig

WARNING: EXPERIMENTAL

This gem allows you to compile Twig templates within Ruby applications that support Tilt templates. This is currently not a native Ruby parser, but rather utilizes PHP command line to compile Twig templates. Data is serialized to YAML in your Ruby application and deserialized in a PHP script that passes the context to Twig.

Installation

This gem has PHP dependencies, which are attempted to be installed automatically:

  • PECL
  • libyaml (via Homebrew)
  • PHP's yaml
  • Composer

Add this line to your application's Gemfile:

gem 'tilt-twig'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tilt-twig

Middleman

A Middleman extension is built-in.

gem 'tilt-twig', require: 'middleman/twig'

Add the extension to the Middleman configuration:

configure :build do
  activate :twig_extension
end

FAQs

Package last updated on 30 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts