daaain / Handlebars

Fullest Handlebars.js templating support for Sublime Text 2 / 3. Also drives syntax colouring on Github and in Visual Studio Code. Install from: https://packagecontrol.io/packages/Handlebars.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@index为undefined

xibolun opened this issue · comments

{{#each array}}
{{log @Index}}
{{/each}}

i logged @Index, its value is undefined;
also @key @last.....

Hey @kedadiannao220,

I'm not sure if I understand the issue, are you seeing this output in your browser console?

This package only provides syntax highlighting for Handlebars in text editors, so the compilation happens somewhere else in your tooling.

I'm close this issue as I think it's outside of scope, but feel free to comment and in case it's something this library is breaking I'm happy to reopen.

hi @daaain,
I am a Handlebars user, other syntaxes used good, like if、else、or、eq; only these @Index @key @last have problems, i don't know why, i checked the chrome console, it logged undefined;

Hey @kedadiannao220,

This repository if only for the syntax colouring in code editors, so it has nothing to do with what you see on the browser console.

The library which compiles Handlebars is here: https://stackoverflow.com/questions/tagged/handlebars.js

But this question you should really post on Stackoverflow: https://stackoverflow.com/questions/tagged/handlebars.js

Preferably with a code example on JSFiddle which demonstrates the error.