Format <script> content in glimmer templates (#20012)
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
1 parent
968c1a62c8
commit
2529b92818
14 files changed
+357
-28
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#### Support embedded `<script>` (#20012 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```hbs
|
||||
{{! Input }}
|
||||
<script>
|
||||
const a = 1;
|
||||
console.log( a );
|
||||
</script>
|
||||
|
||||
{{! Prettier stable }}
|
||||
<script>
|
||||
const a = 1; console.log( a );
|
||||
</script>
|
||||
|
||||
{{! Prettier main }}
|
||||
<script>
|
||||
const a = 1;
|
||||
console.log(a);
|
||||
</script>
|
||||
```
|
||||
Reference in new issue
Block a user