Skip to content

Commit 591d3bb

Browse files
authored
support for svelte-5 #snippet and @render
1 parent 359b1f6 commit 591d3bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/transformers/pug.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ mixin const(expression)
4747
%_| {@const !{expression}}
4848
4949
mixin debug(variables)
50-
%_| {@debug !{variables}}`.replace(
50+
%_| {@debug !{variables}}
51+
52+
mixin snippet(expression)
53+
%_| {#snippet !{expression}}
54+
%_block
55+
%_| {/snippet}
56+
57+
mixin render(expression)
58+
%_| {@render !{expression}}`.replace(
5159
/%_/g,
5260
indentationType === 'tab' ? '\t' : ' ',
5361
);

0 commit comments

Comments
 (0)