going to try real lex/parse to deal with nested templates