A Django template filter to convert Arabic numerals to Roman numerals
Project description
Django Roman is a Django template tag application to convert Arabic numerals into Roman numerals.
Install
$ pip install django-roman
Add to settings.py.
INSTALLED_APPS = [
# ...
'roman',
]
Usage
Use as a template tag.
{% load roman_tags %}
{% to_roman %}Party like it's 1999.{% endto_roman %}
Or as a template filter.
{{ post.body|roman }}
Result:
Party like it's MCMXCIX.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-roman-0.2.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for django_roman-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317e464ab156b96e94e27680b894fc843ac38c0ac3c8aea2bac0c76659494124 |
|
MD5 | c2264cd7e9eeb27c87692cf0a59fea60 |
|
BLAKE2b-256 | 5dd4a1cfbecea74527cfa8cdf8b2e23eb3d2127ec88f4a79ed6238a0a21fa3e8 |