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

HTML preprosessor support #41

Closed
maraisr opened this issue Nov 30, 2016 · 2 comments
Closed

HTML preprosessor support #41

maraisr opened this issue Nov 30, 2016 · 2 comments

Comments

@maraisr
Copy link

maraisr commented Nov 30, 2016

I know it's very subjective - but I'm a huge advocate of Pug or JSX, anything that can help me write HTML!

Would be kind of nice to be able to write my templates with Pug, and have Svelte interpret that, whether or not it's an extra build step or not.

Example:

HelloWorld.pug

.my-app
   h1 {{hello}}

And being able to import that into a HelloWorld.js file

import HelloWorld from './HelloWorld.pug';

new HelloWorld({
   target: document.body,
   data: {
      hello: 'World'
   }
});

My only concern is writing JavaScript in Pug is terrible, so like isolate the template element to Pug and the JS, events, handlers, etc... to a JS file.

@esarbanis
Copy link
Contributor

esarbanis commented Dec 27, 2017

@Rich-Harris I think this is covered in #876, we can close this one.

@Conduitry
Copy link
Member

Closing this since we have svelte.preprocess. If someone disagrees, we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants