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

Template Strings ? #151

Open
rwatts3 opened this issue Oct 9, 2017 · 1 comment
Open

Template Strings ? #151

rwatts3 opened this issue Oct 9, 2017 · 1 comment

Comments

@rwatts3
Copy link

rwatts3 commented Oct 9, 2017

Is it possible to use template strings inside a blaze component, essentially eliminating the need for .html files ?
This is just a generate question as I have not tested whether or not it can be done.

something like.

MyComponent extends BlaseComponent {
        template: `
           <div class="MyTemplate">{{someVar}}</div>
       `
}
@mitar
Copy link
Member

mitar commented Oct 9, 2017

Maybe, but not yet. This would require one to have a Spacebars compiler on the client, and while this is doable, often you do not want extra libraries on the client.

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

2 participants