Pug (HTML preprocessing using svelte-preprocess) #14

Closed
opened 2021-06-12 11:50:47 +00:00 by MilanKladivko · 1 comment
MilanKladivko commented 2021-06-12 11:50:47 +00:00 (Migrated from github.com)

I started to look at svelte-preprocess and I find the pug language tag very useful. Sadly, I had issues looking for anything that supports escaping into Pug via a <template lang=pug> tag for the HTML of the component.

Vue components, AFAIK, just do a .pug file next to the component, but I haven't found a single-file-component solution to look at to easily copy the implementation.

It would be amazing if this package could implement the svelte quirks for pug from the spec.

I'm gonna start looking at how language interpolating(?) works on the script and style tags and try to at least enable basic pug in the tag without the svelte quirks.

I started to look at [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) and I find the pug language tag very useful. Sadly, I had issues looking for anything that supports escaping into Pug via a `<template lang=pug>` tag for the HTML of the component. Vue components, AFAIK, just do a `.pug` file next to the component, but I haven't found a single-file-component solution to look at to easily copy the implementation. It would be amazing if this package could implement the svelte quirks for pug from [the spec](https://github.com/sveltejs/svelte-preprocess/blob/main/docs/preprocessing.md#pug). I'm gonna start looking at how language interpolating(?) works on the script and style tags and try to at least enable basic pug in the tag without the svelte quirks.
MilanKladivko commented 2021-06-12 11:52:19 +00:00 (Migrated from github.com)

Sorry, I didn't read closed issues. Nevermind

Sorry, I didn't read closed issues. Nevermind
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
repos/svelte-sublime#14
No description provided.