Re: template string formatting

2008-12-13 Thread Malcolm Tredinnick
On Sat, 2008-12-13 at 02:14 -0800, Vicky wrote: > Is there any way to take out the first letter of a string in django > template system? > ex: > > x("Hai") should give o/p as: "H" The "slice" filter has already been suggested, but this is a case of the template system providing more than o

Re: template string formatting

2008-12-13 Thread Alex Koshelev
{{var|slice:"0"}} On 12/13/08, Vicky wrote: > > Is there any way to take out the first letter of a string in django > template system? > ex: > > x("Hai") should give o/p as: "H" > > > -- --- Александр Кошелев daeva...@gmail.com --~--~-~--~~~---~--~~ You re