Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dflydev/dflydev-github-gist-twig-extension
GitHub Gist Twig Extension
https://github.com/dflydev/dflydev-github-gist-twig-extension
Last synced: 21 days ago
JSON representation
GitHub Gist Twig Extension
- Host: GitHub
- URL: https://github.com/dflydev/dflydev-github-gist-twig-extension
- Owner: dflydev
- License: mit
- Created: 2012-02-07T06:31:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-15T16:16:04.000Z (almost 12 years ago)
- Last Synced: 2024-05-09T14:08:32.316Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 129 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-twig - Gist - A simple Twig extension for embedding GitHub Gist snippets into Twig templates. (Twig / Extensions)
- awesome-twig - Gist - A simple Twig extension for embedding GitHub Gist snippets into Twig templates. (Twig / Extensions)
README
GitHub Gist Twig Extension
==========================A simple [Twig](http://twig.sensiolabs.org/) extension for embedding
[GitHub](http://github.com) [Gist](http://gist.github.com) snippets
into Twig templates.Requirements
------------* PHP: >=5.3.2
* Twig: >=1.5,<2Usage
-----```php
addExtension($gistTwigExtension);
```Once enabled, gists can be embedded by:
```twig
{{ gist(3360578) }}
```Advanced Usage
--------------The `GistTwigExtension` can optionally accept a `TransportInterface`
and a `CacheInterface` implementation. By default `NativePhpTransport`
and `ArrayCache` are selected if not specified.License
-------MIT, see LICENSE.
Community
---------If you have questions or want to help out, join us in the
[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.