view modules/true.tp @ 272:bb2b4613fdc8

Added support for encoding integers and booleans as JSON
author Michael Pavone <pavone@retrodev.com>
date Sat, 19 Jul 2014 20:18:34 -0700
parents 1417f13f219c
children
line wrap: on
line source

#{
	if <- :self trueblock {
		trueblock:
	}
	ifnot <- :self falseblock {
		self
	}
	if:else <- :self trueblock :elseblock {
		trueblock:
	}
	not <- {
		false
	}
	string <- { "true" }
	jsonEncode <- { "true" }
}