[Django has the concept of filters that allow you to format values in views.](https://docs.djangoproject.com/en/1.2/ref/templates/builtins/)

E.g. if you have a file size in bytes of 123456789 then you can use in your view

```
{{ value|filesizeformat }}

```

to display 117.7 MB. 

(This is one example - there are many others such a pluralize, humanize, timesince, timeuntil etc).

Whats the best way of doing this in ASP.NET MVC3 where the **view will determine the format to be used** (e.g. some views will show files size in bytes, other views in more human readable format).

To spell it out - I am aware that you can do this in custom templates, but can't figure out how you could have different templates for the same value and specify in the view which one to use.