[%- JAVASCRIPT -%] stash.set( "object", new TheName('Larry') ); [%- END -%] Hello, [% object.name %]