djangosnippets.org: Latest snippets tagged with 'logarithmic'https://djangosnippets.org/tags/logarithmic/2009-09-23T06:52:45.564659-05:00simple tag-cloud Template Tag
2009-09-23T06:52:45.564659-05:00mettyhttps://djangosnippets.org/snippets/1739/<p>This Template Tag computes the font-size of two given arguments and returns a CSS-encoded string like "font-size: XXpx;", which can be used to format the font-size of link. (The minium font-size must be set with CSS.)</p>
<p>Requires two arguments:
1. occurrence of the current tag
2. sum of all occurrences …</p>
Freely redistributable