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