2017 © Pedro Peláez
 

library markdown

Markdown processer filter for twig templating engine. Also includes laravel service provider to link to Lablog.

image

lablog/markdown

Markdown processer filter for twig templating engine. Also includes laravel service provider to link to Lablog.

  • Wednesday, February 18, 2015
  • by jralph
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NO LONGER MAINTAINED! Try the following instead: https://github.com/jralph/Twig-Markdown, (*1)

Markdown Twig Filter for LaBlog

A simple plugin for LaBLog (Also works stand-alone with the twig template engine.)., (*2)

Installation

Installation is done via composer packages., (*3)

To install, simply add the following to your composer.json file., (*4)

...
"require": {
    ...
    "lablog/markdown": "1.0.*"
    ...
}
...

Laravel & LaBlog Usage

To use the markdown processor with Laravel 4 and LaBlog, just add the service provider to your app/config/app.php providers list., (*5)

Note: The provider must be added after the Laravel 4 Twig Bridge provider. Note2: If you have LaBlog up and running, you will have already added the Twig Bridge provider., (*6)

...
    'Lablog\Markdown\MarkdownServiceProvider'
...

Using with Stand-alone Twig

To use the markdown processor with a stand-along, non-laravel bridged twig, just add the following to your twig extensions., (*7)

'Lablog\Markdown\Twig\MarkdownLoader'

Note: This has not been tested!, (*8)

General Usage in Templates

To use the markdown filter in a template, simply markdown as a filter to the string you want to process., (*9)

<!-- Other Code -->
    {{ var_containing_markdown | markdown }}
<!-- Other Code -->

The Versions

18/02 2015

dev-master

9999999-dev

Markdown processer filter for twig templating engine. Also includes laravel service provider to link to Lablog.

  Sources   Download

The Requires

 

by Joseph Ralph

07/03 2014

1.0.0

1.0.0.0

Markdown processer filter for twig templating engine. Also includes laravel service provider to link to Lablog.

  Sources   Download

The Requires

 

by Joseph Ralph