Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@js helper #3

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

@js helper #3

wants to merge 16 commits into from

Conversation

k2s
Copy link

@k2s k2s commented Mar 5, 2014

related to LinkedInAttic/dustjs-helpers#74

possible extensions to Dust core (which would of course change Dust far from logic-less):

  • create functions from expressions to compiled version of template (performance improvement and easy debugging}
  • add special Dust language element to eliminate need to wrap expressions to quotes {!if people.size()>10}many{:else}acceptable{/if} or {! "{" + moment(today).format('dd.MM.YYYY') + "}" }

k2s added 16 commits March 4, 2014 18:01
… does

it is easy customize the helper to use either jsEvalPure or jsEvalHandleUnknown (template author can't decide at this moment)
some tests are marked as INCOMPATIBLE and they need to use {:unknown} block to give same results as @if
few tests which use non-js access to values are disabled for now
enable tests from direct access to $idx and $len variables
fix switch is not supporting else content block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant