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

Keep is broken #3

Open
GCheung55 opened this issue May 15, 2012 · 1 comment
Open

Keep is broken #3

GCheung55 opened this issue May 15, 2012 · 1 comment

Comments

@GCheung55
Copy link
Contributor

I'm getting "Uncaught SlabError: Can't compile slab template. Unexpected identifier in the browser with the following code.

var str = '{slab test} \
{keep} \
{slab something} \
<script>var obj = {\'stuff\':\'things\'};</script> \
{endslab} \
{endkeep} \
{endslab}';

var template = Slab.compile(str);

console.log(template.test({}));
@GCheung55
Copy link
Contributor Author

Something I found in the string while console logging in Slab is data.slab data.something

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

No branches or pull requests

1 participant