template: implement ifset template function
template: implement ifset template function

Signed-off-by: Josef 'Jeff' Sipek <a620f141433c70aa9e43778305a6c68cbfadfb25@josefsipek.net>

jeffpc/blahgd,jeffpc/blahgd