Support pug highlighting #9

Closed
opened 2020-05-10 16:28:17 +00:00 by haritonasty · 3 comments
haritonasty commented 2020-05-10 16:28:17 +00:00 (Migrated from github.com)

Now whole code in pug templates not highlighted:

...
</script>

<template lang="pug">
include /ui/mixins

+if('hasTrigger')
  p(bind:this='{anc}')

slot(name='trigger')

+if('open')
  .bg(bind:this='{dialog}', on:click='{onClickaway}')
    +panel.dialog(variant='context')
      .top
        h2 {title}
        +icon('close')(on:click='{closeDialog}')
      slot(name='content')
</template>

<style>
...
Now whole code in pug templates not highlighted: ``` ... </script> <template lang="pug"> include /ui/mixins +if('hasTrigger') p(bind:this='{anc}') slot(name='trigger') +if('open') .bg(bind:this='{dialog}', on:click='{onClickaway}') +panel.dialog(variant='context') .top h2 {title} +icon('close')(on:click='{closeDialog}') slot(name='content') </template> <style> ... ```
corneliusio commented 2020-10-10 19:32:20 +00:00 (Migrated from github.com)

Have considered this quite a bit and I just don't think it's in the scope of this package. It's tricky because while Svelte technically doesn't care what templating language use you, it does assume basic HTML and is ultimately it's own templating language that implements a superset of HTML itself. Supporting completely separate templating language would require essentially cramming an entirely new package into this one, and would also mean I'd be expected to support other templating languages as well.

Anyone is absolutely welcome to take this package and create a new Pug version, but it's not something I have the margins to commit to long-term and currently only intend to commit to Sveltes official templating language.

Have considered this quite a bit and I just don't think it's in the scope of this package. It's tricky because while Svelte **technically** doesn't care what templating language use you, it does assume basic HTML and is ultimately it's own templating language that implements a superset of HTML itself. Supporting completely separate templating language would require essentially cramming an entirely new package into this one, and would also mean I'd be expected to support other templating languages as well. Anyone is absolutely welcome to take this package and create a new Pug version, but it's not something I have the margins to commit to long-term and currently only intend to commit to Sveltes official templating language.
haritonasty commented 2020-10-10 20:48:07 +00:00 (Migrated from github.com)

@corneliusio got you, thanks for answer!

@corneliusio got you, thanks for answer!
duduindo commented 2021-05-07 21:57:01 +00:00 (Migrated from github.com)

@corneliusio 😢

@corneliusio 😢
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#9
No description provided.