qscript in svg + templateHooks for custom template behavior depending on vars