Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Function like dust.helpers.tap would be very helpful inside functions declared in context #147

Closed
mou opened this Issue · 1 comment

2 participants

@mou

For example if i declare context like

{
  "helper": function (chunk, context, bodies, params) {
   // Here i would like to not reference to global scope
     chunk.write(dust.helpers.tap(params['myParam'], cunk, context);
  }
}

I can't find another solution other then reference to helper from my function, because it's work and realy complicated to copy and paste.

@vybs
Collaborator

tap internally uses chunk.render ( any reason we cannot use chunk.render here?)

BTW

We now have the linkedin helpers repo

https://github.com/linkedin/dustjs-helpers/

It would be convenient to have all the discussions related to helpers in that repo.

thanks in advance

@vybs vybs closed this
@vybs vybs reopened this
@vybs vybs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.