Skip to content

hansnilsson/twig-url-linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

UrlLinker

Twig extension of Kwi / UrlLinker (https://bitbucket.org/kwi/urllinker).

Installation

With composer

require: "hansnilsson/twig-url-linker": "dev-master"

Usage

With Silex

use Kwi\TwigUrlLinker;

$app['twig'] = $app->share($app->extend('twig', function($twig, $app) {

    $twig->addExtension(new TwigUrlLinker());

    return $twig;
}));

Then, in a template:

{{ text|UrlLinker|raw }}

About

Twig extension of Kwi UrlLinker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages