Support hat templates into scripting area