https://github.com/richardcarls/nunjucks-autolink
Nunjucks filter for autolinking URLs
https://github.com/richardcarls/nunjucks-autolink
Last synced: 2 months ago
JSON representation
Nunjucks filter for autolinking URLs
- Host: GitHub
- URL: https://github.com/richardcarls/nunjucks-autolink
- Owner: richardcarls
- License: mit
- Created: 2016-05-26T21:15:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-26T22:16:31.000Z (about 9 years ago)
- Last Synced: 2025-02-07T18:19:49.443Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nunjucks-autolink
[](https://travis-ci.org/richardcarls/nunjucks-autolink)
[](https://codeclimate.com/github/richardcarls/nunjucks-autolink)Nunjucks filter for autolinking URLs
### Installation
```shell
npm install nunjucks-autolink --save
```### Usage
Require the filter and pass into your nunjucks env```js
var env = new nunjucks.Environment(
new nunjucks.FileSystemLoader('views', { noCache: true, }),
{ autoescape: true, });env.addFilter('autolink', require('nunjucks-autolink'));
```### Tests
```shell
npm test
```## Credits
- [Richard Carls](https://richardcarls.com)## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2016 Richard Carls