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

partials issue #48

Open
ymorales opened this issue Feb 3, 2012 · 2 comments
Open

partials issue #48

ymorales opened this issue Feb 3, 2012 · 2 comments

Comments

@ymorales
Copy link

ymorales commented Feb 3, 2012

hi, i have to tried to use the partial {>'/templates/noticias.dust.html'/} inside a template but i get this error:

Error: Expected buffer, comment, partial, reference, section or special but "{" found.
Archivo de origen: 1
Línea: 1

thanks for the help!!!

@soci-viii
Copy link

Hey @ymorales, please check out what code your noticias.dust.html template is generating and use the first argument to it's dust.register call to reference your template. I'm fairly sure the name you've specified, /templates/noticias.dust.html, does not match what it is generating. Thanks.

@nistormihai
Copy link

@soci-viii
The problem is there:

var compiled = dust.compile("Hello {name}!", "/templates/noticias.dust.html");
dust.loadSource(compiled);
var compiled = dust.compile("{>'/templates/noticias.dust.html'/}", "other");
dust.loadSource(compiled);

or even

var compiled = dust.compile("Hello {name}!", "intro/main");
dust.loadSource(compiled);
var compiled = dust.compile("{>'intro/main'/}", "other");
dust.loadSource(compiled);

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

3 participants