miki-template 1.3.3 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/.github/release-notes/v1.3.1.md +55 -55
  2. package/.github/release-notes/v1.3.3.md +77 -0
  3. package/.github/workflows/ci.yml +38 -54
  4. package/.github/workflows/release.yml +106 -0
  5. package/AGENT.md +71 -71
  6. package/API_REFERENCE.md +314 -314
  7. package/CHANGELOG.md +173 -169
  8. package/CODE_OF_CONDUCT.md +14 -14
  9. package/CONTRIBUTING.md +27 -27
  10. package/README.md +342 -321
  11. package/ROADMAP.md +40 -40
  12. package/benchmarks/report.json +16 -16
  13. package/benchmarks/run.js +49 -49
  14. package/benchmarks/stress.mjs +647 -647
  15. package/benchmarks/templates/large.dtpl +7 -7
  16. package/benchmarks/templates/medium.dtpl +3 -3
  17. package/benchmarks/templates/small.dtpl +7 -7
  18. package/context/component.md +109 -109
  19. package/context/prd.md +131 -131
  20. package/context/project-structure.md +33 -33
  21. package/dir/base.html +22 -22
  22. package/dir/cmpnt.html +10 -10
  23. package/dir/footer.html +2 -2
  24. package/dir/home.html +80 -80
  25. package/dir/index.html +80 -0
  26. package/dir/navbar.html +8 -8
  27. package/docs/README.md +18 -18
  28. package/docs/advanced_usage.md +71 -71
  29. package/docs/api.md +119 -119
  30. package/docs/filters.md +708 -708
  31. package/docs/installation.md +106 -106
  32. package/docs/overview.md +57 -57
  33. package/docs/partialdef.md +70 -70
  34. package/docs/security.md +27 -27
  35. package/docs/tags.md +673 -673
  36. package/docs/usage.md +646 -646
  37. package/eslint.config.mjs +42 -42
  38. package/ex.mjs +32 -32
  39. package/miki-template-extension/.github/workflows/ci.yml +116 -116
  40. package/miki-template-extension/.vscodeignore +7 -7
  41. package/miki-template-extension/CHANGELOG.md +99 -99
  42. package/miki-template-extension/LICENSE +21 -21
  43. package/miki-template-extension/README.md +273 -273
  44. package/miki-template-extension/extension.js +1013 -1013
  45. package/miki-template-extension/icon.svg +10 -10
  46. package/miki-template-extension/package.json +280 -280
  47. package/miki-template-extension/snippets/miki-template.json +717 -717
  48. package/miki-template-extension/syntaxes/language-configuration.json +114 -114
  49. package/miki-template-extension/syntaxes/miki-template.tmLanguage.json +355 -355
  50. package/miki-template-extension/tests/grammar-tests.json +162 -162
  51. package/miki-template-extension/tests/run-grammar-tests.js +82 -82
  52. package/package.json +37 -34
  53. package/sample-app/package-lock.json +901 -0
  54. package/sample-app/package.json +9 -0
  55. package/sample-app/server.js +14 -0
  56. package/sample-app/views/index.html +1 -0
  57. package/scripts/build-vsix.js +129 -129
  58. package/scripts/build-vsix.ps1 +15 -15
  59. package/snippets/miki-template.json +177 -177
  60. package/src/asyncRender.js +20 -20
  61. package/src/cache.js +80 -80
  62. package/src/context.js +126 -126
  63. package/src/context_processors.js +48 -48
  64. package/src/esm.mjs +84 -84
  65. package/src/filters.js +975 -975
  66. package/src/i18n.js +171 -171
  67. package/src/index.js +974 -940
  68. package/src/lexer.js +114 -114
  69. package/src/libraries.js +371 -371
  70. package/src/parser.js +270 -270
  71. package/src/security.js +53 -53
  72. package/src/tags/control.js +719 -719
  73. package/src/tags/extra.js +154 -154
  74. package/src/tags/helpers.js +26 -26
  75. package/src/tags/i18n.js +256 -256
  76. package/src/tags/inheritance.js +335 -335
  77. package/src/tags/registry.js +18 -18
  78. package/src/tags/util.js +400 -400
  79. package/src/types.d.ts +107 -107
  80. package/syntaxes/language-configuration.json +26 -26
  81. package/syntaxes/miki-template.tmLanguage.json +146 -146
  82. package/tests/asyncRender.test.js +17 -17
  83. package/tests/base.html +6 -6
  84. package/tests/child.html +3 -3
  85. package/tests/context_processors.test.js +13 -13
  86. package/tests/esm.test.mjs +61 -61
  87. package/tests/filters.test.js +254 -254
  88. package/tests/include_security.test.js +9 -9
  89. package/tests/integration/README.md +32 -32
  90. package/tests/integration/features.test.cjs +1681 -1681
  91. package/tests/integration/features.test.mjs +1697 -1697
  92. package/tests/integration/templates/base.miki +6 -6
  93. package/tests/integration/templates/child.miki +6 -6
  94. package/tests/integration/templates/index.html +17 -17
  95. package/tests/lexer.test.js +45 -45
  96. package/tests/parser.test.js +57 -57
  97. package/tests/partial.html +1 -1
  98. package/tests/partialdef.test.js +79 -79
  99. package/tests/production_checks.js +57 -57
  100. package/tests/security.test.js +28 -28
  101. package/tests/tags.test.js +233 -233
package/eslint.config.mjs CHANGED
@@ -1,42 +1,42 @@
1
- export default [
2
- {
3
- files: ['src/**/*.js'],
4
- languageOptions: {
5
- ecmaVersion: 'latest',
6
- sourceType: 'commonjs',
7
- globals: {
8
- Buffer: 'readonly',
9
- console: 'readonly',
10
- exports: 'readonly',
11
- module: 'readonly',
12
- process: 'readonly',
13
- __dirname: 'readonly',
14
- __filename: 'readonly',
15
- require: 'readonly',
16
- setTimeout: 'readonly',
17
- setInterval: 'readonly',
18
- clearTimeout: 'readonly',
19
- clearInterval: 'readonly',
20
- setImmediate: 'readonly',
21
- clearImmediate: 'readonly',
22
- global: 'readonly',
23
- // Node 18+ standard globals
24
- URL: 'readonly',
25
- URLSearchParams: 'readonly',
26
- TextEncoder: 'readonly',
27
- TextDecoder: 'readonly',
28
- fetch: 'readonly',
29
- crypto: 'readonly',
30
- performance: 'readonly'
31
- }
32
- },
33
- rules: {
34
- 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
35
- 'no-console': 'off',
36
- 'no-undef': 'error',
37
- 'semi': ['error', 'always'],
38
- 'quotes': ['error', 'single'],
39
- 'indent': ['error', 2]
40
- }
41
- }
42
- ];
1
+ export default [
2
+ {
3
+ files: ['src/**/*.js'],
4
+ languageOptions: {
5
+ ecmaVersion: 'latest',
6
+ sourceType: 'commonjs',
7
+ globals: {
8
+ Buffer: 'readonly',
9
+ console: 'readonly',
10
+ exports: 'readonly',
11
+ module: 'readonly',
12
+ process: 'readonly',
13
+ __dirname: 'readonly',
14
+ __filename: 'readonly',
15
+ require: 'readonly',
16
+ setTimeout: 'readonly',
17
+ setInterval: 'readonly',
18
+ clearTimeout: 'readonly',
19
+ clearInterval: 'readonly',
20
+ setImmediate: 'readonly',
21
+ clearImmediate: 'readonly',
22
+ global: 'readonly',
23
+ // Node 18+ standard globals
24
+ URL: 'readonly',
25
+ URLSearchParams: 'readonly',
26
+ TextEncoder: 'readonly',
27
+ TextDecoder: 'readonly',
28
+ fetch: 'readonly',
29
+ crypto: 'readonly',
30
+ performance: 'readonly'
31
+ }
32
+ },
33
+ rules: {
34
+ 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
35
+ 'no-console': 'off',
36
+ 'no-undef': 'error',
37
+ 'semi': ['error', 'always'],
38
+ 'quotes': ['error', 'single'],
39
+ 'indent': ['error', 2]
40
+ }
41
+ }
42
+ ];
package/ex.mjs CHANGED
@@ -1,33 +1,33 @@
1
- import express from 'express'
2
- import miki, {__express,registerContextProcessor} from "miki-template"
3
- import path from 'node:path';
4
-
5
- const app =express()
6
- const dir=path.join(process.cwd(),"dir")
7
-
8
- // app.engine('html', __express);
9
- // app.set('view engine', 'html');
10
- // app.set('views', dir);
11
- miki.setupExpress(app, { extension: 'html', views: dir });
12
-
13
- registerContextProcessor((cx)=>({
14
- siteName:"code with miki",
15
- login:{'name':"miki", 'email':"miki@example.com"}
16
- }))
17
- app.get("/",(req,res)=>{
18
- const users=[
19
- {'name':"miki", 'email':"miki@example.com"},
20
- {'name':"miki2", 'email':"miki2@example.com"},
21
- {'name':"miki3", 'email':"miki3@example.com"}
22
- ]
23
- let data=[
24
- {name:"miki", email:"jack@miki.com",address:"kumba"},
25
- {name:"luis",email:"luis@miki.com",address:"kumba"}
26
- ]
27
- res.render("home",{name:"miki-template context", users:users, data:data})
28
- // res.send(content)
29
- })
30
-
31
- app.listen(3000, () => {
32
- console.log('Server is running on port 3000 click: http://localhost:3000')
1
+ import express from 'express'
2
+ import miki, {__express,registerContextProcessor} from "miki-template"
3
+ import path from 'node:path';
4
+
5
+ const app =express()
6
+ const dir=path.join(process.cwd(),"dir")
7
+
8
+ // app.engine('html', __express);
9
+ // app.set('view engine', 'html');
10
+ // app.set('views', dir);
11
+ miki.setupExpress(app, { extension: 'html', views: dir });
12
+
13
+ // registerContextProcessor((cx)=>({
14
+ // siteName:"code with miki",
15
+ // login:{'name':"miki", 'email':"miki@example.com"}
16
+ // }))
17
+ app.get("/",(req,res)=>{
18
+ const users=[
19
+ {'name':"miki", 'email':"miki@example.com"},
20
+ {'name':"miki2", 'email':"miki2@example.com"},
21
+ {'name':"miki3", 'email':"miki3@example.com"}
22
+ ]
23
+ let data=[
24
+ {name:"miki", email:"jack@miki.com",address:"kumba"},
25
+ {name:"luis",email:"luis@miki.com",address:"kumba"}
26
+ ]
27
+ res.render("index",{name:"miki-template context", users:users, data:data})
28
+ // res.send(content)
29
+ })
30
+
31
+ app.listen(3000, () => {
32
+ console.log('Server is running on port 3000 click: http://localhost:3000')
33
33
  } )
@@ -1,116 +1,116 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [ main, master ]
6
- pull_request:
7
- branches: [ main, master ]
8
- workflow_dispatch:
9
-
10
- jobs:
11
- lint:
12
- name: Lint Extension
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Checkout
16
- uses: actions/checkout@v4
17
-
18
- - name: Setup Node.js
19
- uses: actions/setup-node@v4
20
- with:
21
- node-version: '20'
22
-
23
- - name: Install dependencies
24
- run: npm install
25
-
26
- - name: Validate package.json
27
- run: npm run validate
28
-
29
- - name: Check for required files
30
- run: |
31
- echo "Checking required files..."
32
- for file in package.json extension.js README.md CHANGELOG.md LICENSE; do
33
- if [ ! -f "$file" ]; then
34
- echo "Missing required file: $file"
35
- exit 1
36
- fi
37
- done
38
-
39
- test-grammar:
40
- name: Test Grammar
41
- runs-on: ubuntu-latest
42
- steps:
43
- - name: Checkout
44
- uses: actions/checkout@v4
45
-
46
- - name: Setup Node.js
47
- uses: actions/setup-node@v4
48
- with:
49
- node-version: '20'
50
-
51
- - name: Install test dependencies
52
- run: npm install --save-dev textmate-grammar-test
53
-
54
- - name: Run grammar tests
55
- run: npm run test:grammar
56
-
57
- package:
58
- name: Package Extension
59
- runs-on: ubuntu-latest
60
- needs: [lint, test-grammar]
61
- steps:
62
- - name: Checkout
63
- uses: actions/checkout@v4
64
-
65
- - name: Setup Node.js
66
- uses: actions/setup-node@v4
67
- with:
68
- node-version: '20'
69
-
70
- - name: Install dependencies
71
- run: npm install
72
-
73
- - name: Package VSIX
74
- id: package
75
- run: |
76
- npx vsce package --no-dependencies
77
- echo "version=$(node -p \"require('./package.json').version\")" >> $GITHUB_OUTPUT
78
- echo "vsix=$(ls *.vsix 2>/dev/null | head -1)" >> $GITHUB_OUTPUT
79
-
80
- - name: Upload VSIX artifact
81
- uses: actions/upload-artifact@v4
82
- with:
83
- name: miki-template-${{ steps.package.outputs.version }}.vsix
84
- path: ${{ steps.package.outputs.vsix }}
85
-
86
- - name: List output files
87
- run: ls -la *.vsix 2>/dev/null || echo "No VSIX files found"
88
-
89
- publish:
90
- name: Publish to Marketplace
91
- runs-on: ubuntu-latest
92
- needs: [package]
93
- if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
94
- steps:
95
- - name: Checkout
96
- uses: actions/checkout@v4
97
-
98
- - name: Download VSIX
99
- uses: actions/download-artifact@v4
100
- with:
101
- name: miki-template-${{ needs.package.outputs.version }}.vsix
102
-
103
- - name: Publish to VS Code Marketplace
104
- run: npx vsce publish --no-dependencies
105
- env:
106
- VSCE_PAT: ${{ secrets.VSCE_PAT }}
107
- continue-on-error: true
108
-
109
- - name: Create Release
110
- if: success()
111
- uses: softprops/action-gh-release@v1
112
- with:
113
- files: *.vsix
114
- generate_release_notes: true
115
- env:
116
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
+ branches: [ main, master ]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ lint:
12
+ name: Lint Extension
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '20'
22
+
23
+ - name: Install dependencies
24
+ run: npm install
25
+
26
+ - name: Validate package.json
27
+ run: npm run validate
28
+
29
+ - name: Check for required files
30
+ run: |
31
+ echo "Checking required files..."
32
+ for file in package.json extension.js README.md CHANGELOG.md LICENSE; do
33
+ if [ ! -f "$file" ]; then
34
+ echo "Missing required file: $file"
35
+ exit 1
36
+ fi
37
+ done
38
+
39
+ test-grammar:
40
+ name: Test Grammar
41
+ runs-on: ubuntu-latest
42
+ steps:
43
+ - name: Checkout
44
+ uses: actions/checkout@v4
45
+
46
+ - name: Setup Node.js
47
+ uses: actions/setup-node@v4
48
+ with:
49
+ node-version: '20'
50
+
51
+ - name: Install test dependencies
52
+ run: npm install --save-dev textmate-grammar-test
53
+
54
+ - name: Run grammar tests
55
+ run: npm run test:grammar
56
+
57
+ package:
58
+ name: Package Extension
59
+ runs-on: ubuntu-latest
60
+ needs: [lint, test-grammar]
61
+ steps:
62
+ - name: Checkout
63
+ uses: actions/checkout@v4
64
+
65
+ - name: Setup Node.js
66
+ uses: actions/setup-node@v4
67
+ with:
68
+ node-version: '20'
69
+
70
+ - name: Install dependencies
71
+ run: npm install
72
+
73
+ - name: Package VSIX
74
+ id: package
75
+ run: |
76
+ npx vsce package --no-dependencies
77
+ echo "version=$(node -p \"require('./package.json').version\")" >> $GITHUB_OUTPUT
78
+ echo "vsix=$(ls *.vsix 2>/dev/null | head -1)" >> $GITHUB_OUTPUT
79
+
80
+ - name: Upload VSIX artifact
81
+ uses: actions/upload-artifact@v4
82
+ with:
83
+ name: miki-template-${{ steps.package.outputs.version }}.vsix
84
+ path: ${{ steps.package.outputs.vsix }}
85
+
86
+ - name: List output files
87
+ run: ls -la *.vsix 2>/dev/null || echo "No VSIX files found"
88
+
89
+ publish:
90
+ name: Publish to Marketplace
91
+ runs-on: ubuntu-latest
92
+ needs: [package]
93
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
94
+ steps:
95
+ - name: Checkout
96
+ uses: actions/checkout@v4
97
+
98
+ - name: Download VSIX
99
+ uses: actions/download-artifact@v4
100
+ with:
101
+ name: miki-template-${{ needs.package.outputs.version }}.vsix
102
+
103
+ - name: Publish to VS Code Marketplace
104
+ run: npx vsce publish --no-dependencies
105
+ env:
106
+ VSCE_PAT: ${{ secrets.VSCE_PAT }}
107
+ continue-on-error: true
108
+
109
+ - name: Create Release
110
+ if: success()
111
+ uses: softprops/action-gh-release@v1
112
+ with:
113
+ files: *.vsix
114
+ generate_release_notes: true
115
+ env:
116
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,7 +1,7 @@
1
- .github/
2
- tests/
3
- *.vsix
4
- icon.svg
5
- *.log
6
- node_modules/
7
- .DS_Store
1
+ .github/
2
+ tests/
3
+ *.vsix
4
+ icon.svg
5
+ *.log
6
+ node_modules/
7
+ .DS_Store
@@ -1,99 +1,99 @@
1
- # Changelog
2
-
3
- All notable changes to this extension will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.7.1] - 2026-09-03
9
-
10
- ### Added
11
-
12
- - **Rename Blocks (F2)**: Rename `{% block name %}` across workspace with F2
13
- - **Path Completions**: Auto-suggest template files for `{% include %}` and `{% extends %}`
14
- - **Semantic Token Provider**: Enhanced semantic highlighting with proper token classification
15
- - **HTML/CSS/JS Embedded Support**: Full syntax highlighting for embedded languages
16
- - **Emmet Support**: HTML and JavaScript Emmet abbreviations work in templates
17
- - **CSS in `<style>` tags**: Proper CSS syntax highlighting
18
- - **JS in `<script>` tags**: Proper JavaScript syntax highlighting
19
-
20
- ### Fixed
21
-
22
- - Grammar patterns for proper HTML scope activation
23
- - Embedded language mappings for CSS and JavaScript
24
- - Multiple bug fixes and improvements
25
-
26
- ## [1.7.0] - 2026-09-03
27
-
28
- ### Added
29
-
30
- - **Inlay Hints**: Show inline parameter hints for filter arguments
31
- - **Project-wide Find References**: Find blocks, includes, extends across entire workspace
32
- - **Smart Tag Selection**: Double-click to select entire `{% block %}` content
33
- - **Custom Tag/Filters Detection**: Auto-detect from project config files
34
- - **Template Preview Command**: Preview template syntax in a webview panel
35
- - **Smart Paste**: Auto-detect HTML paste for potential escaping
36
- - **Bracket Matching Highlights**: Visual highlight for matching `{% if %}`/`{% endif %}` pairs
37
- - **Template Variables IntelliSense**: Common variable names (user, request, form, items, etc.)
38
- - **Performance Debouncing**: Optimized validation and decorations with debounce
39
- - **Quick Outline Navigation**: `Ctrl+Shift+.` and `Ctrl+Shift+,` to jump between blocks
40
-
41
- ### New Commands
42
- - `goToNextBlock` / `goToPrevBlock` - Navigate between blocks
43
- - `previewTemplate` - Preview template in new tab
44
- - `showOutline` - Quick outline navigation
45
- - `findBlockReferences` - Find all block references
46
-
47
- ### New Settings
48
- - `enableInlayHints` - Toggle inlay hints
49
- - `enableBracketHighlight` - Toggle bracket highlighting
50
- - `enableSmartPaste` - Toggle smart paste
51
-
52
- ## [1.6.0] - 2026-09-03
53
-
54
- ### Added
55
-
56
- - **Color Decorations**: Automatically highlights color values (`#ff0000`, `rgb()`, `rgba()`, `hsl()`, `hsla()`) in templates
57
- - **Code Actions**: Quick fixes for common issues
58
- - **Find References**: Find all references to blocks and includes
59
- - **New Commands**: wrapInBlock, wrapInFor, wrapInIf, addPrettierIgnore
60
- - **New Settings**: enableColorDecorations, enableCodeActions
61
-
62
- ### Changed
63
-
64
- - Improved completion items with argument hints
65
- - Better validation diagnostics
66
- - Enhanced outline view with icons
67
-
68
- ## [1.5.0] - 2026-09-03
69
-
70
- ### Added
71
-
72
- - **Go-to-Definition**: Jump to included/extended templates and block definitions
73
- - **Outline View**: See template structure
74
- - **forloop.* Completions**: Auto-complete loop variables
75
- - **Keyboard Shortcut**: `Ctrl+Shift+F` to wrap selection with filter
76
-
77
- ## [1.4.0] - 2026-09-02
78
-
79
- ### Added
80
-
81
- - Dual language support: `miki-template` and `django-html`
82
- - File associations: `.miki`, `.miki-template`, `.django`, `.dj`
83
- - Comprehensive filter support (70+ filters)
84
- - Prettier integration with `prettier-ignore`
85
-
86
- ## [1.3.0] - 2026-08-15
87
-
88
- ### Added
89
-
90
- - Buy Me a Coffee integration
91
- - Format on save configuration
92
-
93
- ## [1.2.0] - 2026-06-01
94
-
95
- ### Added
96
-
97
- - Initial release
98
- - Basic syntax highlighting
99
- - Code snippets
1
+ # Changelog
2
+
3
+ All notable changes to this extension will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.7.1] - 2026-09-03
9
+
10
+ ### Added
11
+
12
+ - **Rename Blocks (F2)**: Rename `{% block name %}` across workspace with F2
13
+ - **Path Completions**: Auto-suggest template files for `{% include %}` and `{% extends %}`
14
+ - **Semantic Token Provider**: Enhanced semantic highlighting with proper token classification
15
+ - **HTML/CSS/JS Embedded Support**: Full syntax highlighting for embedded languages
16
+ - **Emmet Support**: HTML and JavaScript Emmet abbreviations work in templates
17
+ - **CSS in `<style>` tags**: Proper CSS syntax highlighting
18
+ - **JS in `<script>` tags**: Proper JavaScript syntax highlighting
19
+
20
+ ### Fixed
21
+
22
+ - Grammar patterns for proper HTML scope activation
23
+ - Embedded language mappings for CSS and JavaScript
24
+ - Multiple bug fixes and improvements
25
+
26
+ ## [1.7.0] - 2026-09-03
27
+
28
+ ### Added
29
+
30
+ - **Inlay Hints**: Show inline parameter hints for filter arguments
31
+ - **Project-wide Find References**: Find blocks, includes, extends across entire workspace
32
+ - **Smart Tag Selection**: Double-click to select entire `{% block %}` content
33
+ - **Custom Tag/Filters Detection**: Auto-detect from project config files
34
+ - **Template Preview Command**: Preview template syntax in a webview panel
35
+ - **Smart Paste**: Auto-detect HTML paste for potential escaping
36
+ - **Bracket Matching Highlights**: Visual highlight for matching `{% if %}`/`{% endif %}` pairs
37
+ - **Template Variables IntelliSense**: Common variable names (user, request, form, items, etc.)
38
+ - **Performance Debouncing**: Optimized validation and decorations with debounce
39
+ - **Quick Outline Navigation**: `Ctrl+Shift+.` and `Ctrl+Shift+,` to jump between blocks
40
+
41
+ ### New Commands
42
+ - `goToNextBlock` / `goToPrevBlock` - Navigate between blocks
43
+ - `previewTemplate` - Preview template in new tab
44
+ - `showOutline` - Quick outline navigation
45
+ - `findBlockReferences` - Find all block references
46
+
47
+ ### New Settings
48
+ - `enableInlayHints` - Toggle inlay hints
49
+ - `enableBracketHighlight` - Toggle bracket highlighting
50
+ - `enableSmartPaste` - Toggle smart paste
51
+
52
+ ## [1.6.0] - 2026-09-03
53
+
54
+ ### Added
55
+
56
+ - **Color Decorations**: Automatically highlights color values (`#ff0000`, `rgb()`, `rgba()`, `hsl()`, `hsla()`) in templates
57
+ - **Code Actions**: Quick fixes for common issues
58
+ - **Find References**: Find all references to blocks and includes
59
+ - **New Commands**: wrapInBlock, wrapInFor, wrapInIf, addPrettierIgnore
60
+ - **New Settings**: enableColorDecorations, enableCodeActions
61
+
62
+ ### Changed
63
+
64
+ - Improved completion items with argument hints
65
+ - Better validation diagnostics
66
+ - Enhanced outline view with icons
67
+
68
+ ## [1.5.0] - 2026-09-03
69
+
70
+ ### Added
71
+
72
+ - **Go-to-Definition**: Jump to included/extended templates and block definitions
73
+ - **Outline View**: See template structure
74
+ - **forloop.* Completions**: Auto-complete loop variables
75
+ - **Keyboard Shortcut**: `Ctrl+Shift+F` to wrap selection with filter
76
+
77
+ ## [1.4.0] - 2026-09-02
78
+
79
+ ### Added
80
+
81
+ - Dual language support: `miki-template` and `django-html`
82
+ - File associations: `.miki`, `.miki-template`, `.django`, `.dj`
83
+ - Comprehensive filter support (70+ filters)
84
+ - Prettier integration with `prettier-ignore`
85
+
86
+ ## [1.3.0] - 2026-08-15
87
+
88
+ ### Added
89
+
90
+ - Buy Me a Coffee integration
91
+ - Format on save configuration
92
+
93
+ ## [1.2.0] - 2026-06-01
94
+
95
+ ### Added
96
+
97
+ - Initial release
98
+ - Basic syntax highlighting
99
+ - Code snippets
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 miki-template contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 miki-template contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.