This is Grav plugin. Output tiny html codes from text files in user/minicodes.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
twig
.gitignore
CHANGELOG.md
LICENSE
README.md
blueprints.yaml
hebe.json
minicode.php
minicode.yaml

README.md

Table of Contents:

About

Minicode is Grav plugin.

This plugin add Twig filter {{ | minicode }}. The filter is output tiny html (or other text) inside a document from text file.

And the filter can use on Templates too. You can output codes of site global. (ex: Sidebars, Ads, New product information...)

Installation

Installing Minicode plugin can only manual install now. Download this plugin and extracting all plugin files to

user/plugins/minicode

Usage

{{ 'filename.txt' |  minicode  }}
  1. Create directory user/minicodes if nothing. (This name is default. You can change directory name in plugin's config)
  2. Write a tiny html (or other text) to file. (ex: minicode1.html)
  3. The file put into user/minicodes directory. (ex: user/minicodes/minicode1.html)
  4. Write twig tag in page content or theme file. (ex: {{ 'minicode1.html' | minicode }})
  5. Preview the site.

Security

!Caution!

This plugin RAW output from file. Please check Broken HTML tags and Security risk before upload.

License

Copyright (c) 2016 Takefumi Ota.

Licensed for use under the terms of the MIT.

Found a mistakes ?

Please tell my mistakes about English if any. :-p