Improve textblock parsing
Mostly working Freemarker template feature