﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19059	New {% decode %} tag	Marc Rechté	nobody	"Hello,

I would really appreciate a standard ""decode"" tag that would do a value decoding. Syntax would be:

{% decode var value1 newvalue1 [value2 newvalue2...] [default_value] %}

Examples:
{% decode weather_forecast 'with' 'selected' %}
If weather_forecast equals 'with' return 'selected' else returns ''

{% decode category '12' '1' '13' '1', '14' '2' '0' %}
If category equals '12', '13' returns '1'
If category equals '14' returns '2'
Any other value returns '0'

Thanks"	Uncategorized	closed	Template system	1.4	Normal	wontfix			Unreviewed	0	0	0	0	0	0
