A simple roman numeral plugin for Grav CMS. Convert an integer into a roman numeral and vice versa. Based on https://github.com/bransinanderson/Craft-Roman
Switch branches/tags
Nothing to show
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.
assets
docs
twig
CHANGELOG.md
LICENSE.txt
README.md
blueprints.yaml
roman.php
roman.yaml

README.md

Grav Roman Plugin

Release Issues Downloads License

This plugin introduces roman numeral conversion.

Want to learn more about Roman numeral : Wikipedia

Table of Contents:

Grav Roman Plugin

The Grav Roman Plugin for Grav convert an integer into a roman numeral and vice versa.

This plugin is an adaptation of Craft-Roman.

Installation and Updates

The Grav Roman Plugin is easy to install with GPM.

$ bin/gpm install roman

Or clone from GitHub and put in the user/plugins/roman folder.

For more informations, please check the Installation and update guide.

Usage

Inside content files.

Examples

Get roman numeral of number 2016

{{ getRoman(2016) }}

Example Output for {{ getRoman(2016) }}

MMXVI

Get number from roman numeral

{{ getNumber('MCMXCVII') }}

Example Output for {{ getNumber('MCMXCVII') }}

1997

Get roman numeral of current year

{{ getRoman('now'|date('Y')) }}

Example Output for {{ getRoman('now'|date('Y')) }}

MMXVI

Troubleshooting

If you find a bug, please open a new issue

Disclaimer

I've 'written' this plugin for my own use. It comes without any guarantee, so your mileage may vary in using it. If you find bugs or have great additions you'd like to share, use github to fork the project and share your improvements by initiating pull request

Tested on Grav

Latest Stable Version

Contributing

You can contribute at any time! Before opening any issue, please search for existing issues and review the guidelines for contributing.

After that please note:

  • If you find a bug, would like to make a feature request or suggest an improvement, please open a new issue. If you have any interesting ideas for additions to the syntax please do suggest them as well!
  • Feature requests are more likely to get attention if you include a clearly described use case.
  • If you wish to submit a pull request, please make again sure that your request match the guidelines for contributing and that you keep track of adding unit tests for any new or changed functionality.

See also the list of contributors who participated in this project.

Licence

See Licence

Thanks

bransinanderson/Craft-Roman

Sommerregen/grav-plugin-shortcodes

getgrav/grav