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
Convert Arabic numerals to Roman numerals with the roman template filter.
{% load roman_tags %}
{{ "Party like it's 1999."|roman }}
Result:
Party like it's <span class="numerals numerals-roman">MCMXCIX</span>.
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.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for django_roman-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f203d5157a7905c842384b22d7ae14dda6b480ea27ad5032c94dd8553565f593 |
|
MD5 | f097af844772921150d924382829f76d |
|
BLAKE2b-256 | 6caa3423f71e3ba466b9254f29f926404ec8fe69f18e673094b166b0c97bf870 |