@rxap/handlebars 19.0.1-dev.5 → 19.0.2-dev.0
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.
- package/CHANGELOG.md +14 -0
- package/README.md +25 -23
- package/compodoc/changelog.html +9 -0
- package/compodoc/index.html +15 -21
- package/compodoc/js/menu-wc.js +3 -0
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/variables.html +221 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +11 -11
- package/docs/html/assets/highlight.css +6 -13
- package/docs/html/classes/HandlebarsPipe.html +2 -2
- package/docs/html/index.html +22 -21
- package/docs/markdown/README.md +25 -23
- package/docs/markdown/classes/HandlebarsPipe.md +2 -2
- package/docs/wiki/Class.HandlebarsPipe.md +2 -2
- package/docs/wiki/Home.md +25 -23
- package/package.json +2 -2
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="no-js" lang="">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
6
|
+
<title>angular-handlebars</title>
|
|
7
|
+
<meta name="description" content="">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
|
|
10
|
+
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
|
11
|
+
<link rel="stylesheet" href="../styles/style.css">
|
|
12
|
+
<link rel="stylesheet" href="../styles/dark.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<script>
|
|
16
|
+
// Blocking script to avoid flickering dark mode
|
|
17
|
+
// Dark mode toggle button
|
|
18
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
19
|
+
var darkModeState = useDark.matches;
|
|
20
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
21
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
22
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
23
|
+
|
|
24
|
+
function checkToggle(check) {
|
|
25
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
26
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function toggleDarkMode(state) {
|
|
31
|
+
if (window.localStorage) {
|
|
32
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
checkToggle(state);
|
|
36
|
+
|
|
37
|
+
const hasClass = document.body.classList.contains('dark');
|
|
38
|
+
|
|
39
|
+
if (state) {
|
|
40
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
41
|
+
$darkModeToggles[i].classList.add('dark');
|
|
42
|
+
}
|
|
43
|
+
if (!hasClass) {
|
|
44
|
+
document.body.classList.add('dark');
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
48
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
49
|
+
}
|
|
50
|
+
if (hasClass) {
|
|
51
|
+
document.body.classList.remove('dark');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
useDark.addEventListener('change', function (evt) {
|
|
57
|
+
toggleDarkMode(evt.matches);
|
|
58
|
+
});
|
|
59
|
+
if (darkModeStateLocal) {
|
|
60
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
61
|
+
}
|
|
62
|
+
toggleDarkMode(darkModeState);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
|
+
<div class="d-flex">
|
|
67
|
+
<a href="../" class="navbar-brand">angular-handlebars</a>
|
|
68
|
+
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
+
<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="container-fluid main">
|
|
77
|
+
<div class="row main">
|
|
78
|
+
<div class="d-none d-md-block menu">
|
|
79
|
+
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
|
+
</div>
|
|
81
|
+
<!-- START CONTENT -->
|
|
82
|
+
<div class="content miscellaneous-variables">
|
|
83
|
+
<div class="content-data">
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<ol class="breadcrumb">
|
|
103
|
+
<li class="breadcrumb-item">Miscellaneous</li>
|
|
104
|
+
<li class="breadcrumb-item">Variables</li>
|
|
105
|
+
</ol>
|
|
106
|
+
|
|
107
|
+
<section data-compodoc="block-index">
|
|
108
|
+
<h3 id="index">Index</h3>
|
|
109
|
+
<table class="table table-sm table-bordered index-table">
|
|
110
|
+
<tbody>
|
|
111
|
+
<tr>
|
|
112
|
+
<td class="col-md-4">
|
|
113
|
+
<ul class="index-list">
|
|
114
|
+
<li>
|
|
115
|
+
<a href="#schematic" title="src/generators/init/index.ts" ><b>schematic</b> (src/.../index.ts)</a>
|
|
116
|
+
</li>
|
|
117
|
+
</ul>
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
</tbody>
|
|
121
|
+
</table>
|
|
122
|
+
</section>
|
|
123
|
+
|
|
124
|
+
<h3>src/generators/init/index.ts</h3>
|
|
125
|
+
<section data-compodoc="block-properties">
|
|
126
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
127
|
+
<tbody>
|
|
128
|
+
<tr>
|
|
129
|
+
<td class="col-md-4">
|
|
130
|
+
<a name="schematic"></a>
|
|
131
|
+
<span class="name">
|
|
132
|
+
<span ><b>schematic</b></span>
|
|
133
|
+
<a href="#schematic"><span class="icon ion-ios-link"></span></a>
|
|
134
|
+
</span>
|
|
135
|
+
</td>
|
|
136
|
+
</tr>
|
|
137
|
+
<tr>
|
|
138
|
+
<td class="col-md-4">
|
|
139
|
+
<i>Default value : </i><code>convertNxGenerator(generator)</code>
|
|
140
|
+
</td>
|
|
141
|
+
</tr>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</section>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
</div><div class="search-results">
|
|
151
|
+
<div class="has-results">
|
|
152
|
+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
|
153
|
+
<ul class="search-results-list"></ul>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="no-results">
|
|
156
|
+
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
<!-- END CONTENT -->
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<label class="dark-mode-switch">
|
|
165
|
+
<input type="checkbox">
|
|
166
|
+
<span class="slider">
|
|
167
|
+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
|
|
168
|
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
|
|
169
|
+
</svg>
|
|
170
|
+
</span>
|
|
171
|
+
</label>
|
|
172
|
+
|
|
173
|
+
<script>
|
|
174
|
+
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
175
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'miscellaneous-variables';
|
|
176
|
+
var COMPODOC_CURRENT_PAGE_URL = 'variables.html';
|
|
177
|
+
var MAX_SEARCH_RESULTS = 15;
|
|
178
|
+
</script>
|
|
179
|
+
|
|
180
|
+
<script>
|
|
181
|
+
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
182
|
+
checkToggle(darkModeState);
|
|
183
|
+
if ($darkModeToggleSwitchers.length > 0) {
|
|
184
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
185
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
186
|
+
darkModeState = !darkModeState;
|
|
187
|
+
toggleDarkMode(darkModeState);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</script>
|
|
192
|
+
|
|
193
|
+
<script src="../js/libs/custom-elements.min.js"></script>
|
|
194
|
+
<script src="../js/libs/lit-html.js"></script>
|
|
195
|
+
|
|
196
|
+
<script src="../js/menu-wc.js" defer></script>
|
|
197
|
+
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
198
|
+
|
|
199
|
+
<script src="../js/libs/bootstrap-native.js"></script>
|
|
200
|
+
|
|
201
|
+
<script src="../js/libs/es6-shim.min.js"></script>
|
|
202
|
+
<script src="../js/libs/EventDispatcher.js"></script>
|
|
203
|
+
<script src="../js/libs/promise.min.js"></script>
|
|
204
|
+
<script src="../js/libs/zepto.min.js"></script>
|
|
205
|
+
|
|
206
|
+
<script src="../js/compodoc.js"></script>
|
|
207
|
+
|
|
208
|
+
<script src="../js/tabs.js"></script>
|
|
209
|
+
<script src="../js/menu.js"></script>
|
|
210
|
+
<script src="../js/libs/clipboard.min.js"></script>
|
|
211
|
+
<script src="../js/libs/prism.js"></script>
|
|
212
|
+
<script src="../js/sourceCode.js"></script>
|
|
213
|
+
<script src="../js/search/search.js"></script>
|
|
214
|
+
<script src="../js/search/lunr.min.js"></script>
|
|
215
|
+
<script src="../js/search/search-lunr.js"></script>
|
|
216
|
+
<script src="../js/search/search_index.js"></script>
|
|
217
|
+
<script src="../js/lazy-load-graphs.js"></script>
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
</body>
|
|
221
|
+
</html>
|
package/compodoc/properties.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</ol>
|
|
103
103
|
<ul class="properties-list">
|
|
104
104
|
<li>
|
|
105
|
-
<b>Version</b> : 19.0.
|
|
105
|
+
<b>Version</b> : 19.0.2-dev.0</li>
|
|
106
106
|
<li>
|
|
107
107
|
<b>Description</b> : Provides an Angular pipe that compiles Handlebars templates. The pipe takes a template string and a context object as input. It then uses Handlebars to compile the template with the provided context, returning the rendered string.
|
|
108
108
|
</li>
|
package/docs/documentation.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"fileName": "handlebars.pipe.ts",
|
|
46
46
|
"line": 13,
|
|
47
47
|
"character": 2,
|
|
48
|
-
"url": "https://gitlab.com/rxap/packages/-/blob/
|
|
48
|
+
"url": "https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L13"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
51
|
"signatures": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"fileName": "handlebars.pipe.ts",
|
|
61
61
|
"line": 13,
|
|
62
62
|
"character": 2,
|
|
63
|
-
"url": "https://gitlab.com/rxap/packages/-/blob/
|
|
63
|
+
"url": "https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L13"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
"parameters": [
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"fileName": "handlebars.pipe.ts",
|
|
125
125
|
"line": 11,
|
|
126
126
|
"character": 13,
|
|
127
|
-
"url": "https://gitlab.com/rxap/packages/-/blob/
|
|
127
|
+
"url": "https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L11"
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
130
|
"implementedTypes": [
|
|
@@ -152,35 +152,35 @@
|
|
|
152
152
|
"readme": [
|
|
153
153
|
{
|
|
154
154
|
"kind": "text",
|
|
155
|
-
"text": "Provides an Angular pipe that compiles Handlebars templates. The pipe takes a template string and a context object as input. It then uses Handlebars to compile the template with the provided context, returning the rendered string.\n\n[](https://www.npmjs.com/package/@rxap/handlebars)\n[](https://www.npmjs.com/package/@rxap/handlebars)\n[](https://commitizen.github.io/cz-cli/)\n[](https://github.com/prettier/prettier)\n\n\n\n\n- [Installation](#installation)\n- [Generators](#generators)\n - [init](#init)\n\n# Installation\n\n**Add the package to your workspace:**\n"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"kind": "code",
|
|
159
|
-
"text": "```bash
|
|
159
|
+
"text": "```bash\nyarn add @rxap/handlebars\n```"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"kind": "text",
|
|
163
|
-
"text": "\n**Install peer dependencies
|
|
163
|
+
"text": "\n**Install peer dependencies:**\n"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"kind": "code",
|
|
167
|
-
"text": "```bash
|
|
167
|
+
"text": "```bash\nyarn add @angular/core@^19.1.3 \n```"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"kind": "text",
|
|
171
|
-
"text": "\n**Execute the init generator
|
|
171
|
+
"text": "\n**Execute the init generator:**\n"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"kind": "code",
|
|
175
|
-
"text": "```bash
|
|
175
|
+
"text": "```bash\nyarn nx g @rxap/handlebars:init\n```"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"kind": "text",
|
|
179
|
-
"text": "\n# Generators\n\n
|
|
179
|
+
"text": "\n# Generators\n\n## init\n> Initialize the package in the workspace\n\n"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"kind": "code",
|
|
183
|
-
"text": "```bash
|
|
183
|
+
"text": "```bash\nnx g @rxap/handlebars:init\n```"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
186
|
"symbolIdMap": {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--light-hl-0: #
|
|
3
|
-
--dark-hl-0: #
|
|
4
|
-
--light-hl-1: #
|
|
5
|
-
--dark-hl-1: #
|
|
6
|
-
--light-hl-2: #
|
|
7
|
-
--dark-hl-2: #
|
|
8
|
-
--light-hl-3: #A31515;
|
|
9
|
-
--dark-hl-3: #CE9178;
|
|
2
|
+
--light-hl-0: #795E26;
|
|
3
|
+
--dark-hl-0: #DCDCAA;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #D4D4D4;
|
|
6
|
+
--light-hl-2: #A31515;
|
|
7
|
+
--dark-hl-2: #CE9178;
|
|
10
8
|
--light-code-background: #FFFFFF;
|
|
11
9
|
--dark-code-background: #1E1E1E;
|
|
12
10
|
}
|
|
@@ -15,7 +13,6 @@
|
|
|
15
13
|
--hl-0: var(--light-hl-0);
|
|
16
14
|
--hl-1: var(--light-hl-1);
|
|
17
15
|
--hl-2: var(--light-hl-2);
|
|
18
|
-
--hl-3: var(--light-hl-3);
|
|
19
16
|
--code-background: var(--light-code-background);
|
|
20
17
|
} }
|
|
21
18
|
|
|
@@ -23,7 +20,6 @@
|
|
|
23
20
|
--hl-0: var(--dark-hl-0);
|
|
24
21
|
--hl-1: var(--dark-hl-1);
|
|
25
22
|
--hl-2: var(--dark-hl-2);
|
|
26
|
-
--hl-3: var(--dark-hl-3);
|
|
27
23
|
--code-background: var(--dark-code-background);
|
|
28
24
|
} }
|
|
29
25
|
|
|
@@ -31,7 +27,6 @@
|
|
|
31
27
|
--hl-0: var(--light-hl-0);
|
|
32
28
|
--hl-1: var(--light-hl-1);
|
|
33
29
|
--hl-2: var(--light-hl-2);
|
|
34
|
-
--hl-3: var(--light-hl-3);
|
|
35
30
|
--code-background: var(--light-code-background);
|
|
36
31
|
}
|
|
37
32
|
|
|
@@ -39,12 +34,10 @@
|
|
|
39
34
|
--hl-0: var(--dark-hl-0);
|
|
40
35
|
--hl-1: var(--dark-hl-1);
|
|
41
36
|
--hl-2: var(--dark-hl-2);
|
|
42
|
-
--hl-3: var(--dark-hl-3);
|
|
43
37
|
--code-background: var(--dark-code-background);
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
.hl-0 { color: var(--hl-0); }
|
|
47
41
|
.hl-1 { color: var(--hl-1); }
|
|
48
42
|
.hl-2 { color: var(--hl-2); }
|
|
49
|
-
.hl-3 { color: var(--hl-3); }
|
|
50
43
|
pre, code { background: var(--code-background); }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>HandlebarsPipe | @rxap/handlebars</title><meta name="description" content="Documentation for @rxap/handlebars"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/handlebars</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/handlebars</a></li><li><a href="HandlebarsPipe.html">HandlebarsPipe</a></li></ul><h1>Class HandlebarsPipe</h1></div><section class="tsd-panel"><h4>Implements</h4><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">PipeTransform</span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>HandlebarsPipe | @rxap/handlebars</title><meta name="description" content="Documentation for @rxap/handlebars"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/handlebars</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/handlebars</a></li><li><a href="HandlebarsPipe.html">HandlebarsPipe</a></li></ul><h1>Class HandlebarsPipe</h1></div><section class="tsd-panel"><h4>Implements</h4><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">PipeTransform</span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L11">handlebars.pipe.ts:11</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="HandlebarsPipe.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|
2
2
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="HandlebarsPipe.html#transform" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform</span></a>
|
|
3
|
-
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="constructorhandlebarspipe" class="tsd-anchor"></a><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">HandlebarsPipe</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="HandlebarsPipe.html" class="tsd-signature-type tsd-kind-class">HandlebarsPipe</a><a href="#constructorhandlebarspipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="HandlebarsPipe.html" class="tsd-signature-type tsd-kind-class">HandlebarsPipe</a></h4></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Methods</h2></summary><section><section class="tsd-panel tsd-member"><a id="transform" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>transform</span><a href="#transform" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="transform-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">transform</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#transform-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type">any</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Implementation of PipeTransform.transform</p><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/
|
|
3
|
+
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="constructorhandlebarspipe" class="tsd-anchor"></a><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">HandlebarsPipe</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="HandlebarsPipe.html" class="tsd-signature-type tsd-kind-class">HandlebarsPipe</a><a href="#constructorhandlebarspipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="HandlebarsPipe.html" class="tsd-signature-type tsd-kind-class">HandlebarsPipe</a></h4></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Methods</h2></summary><section><section class="tsd-panel tsd-member"><a id="transform" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>transform</span><a href="#transform" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="transform-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">transform</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#transform-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type">any</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Implementation of PipeTransform.transform</p><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L13">handlebars.pipe.ts:13</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#transform" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/handlebars</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/docs/html/index.html
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/handlebars</title><meta name="description" content="Documentation for @rxap/handlebars"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/handlebars</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>@rxap/handlebars</h1></div><div class="tsd-panel tsd-typography"><p>Provides an Angular pipe that compiles Handlebars templates. The pipe takes a template string and a context object as input. It then uses Handlebars to compile the template with the provided context, returning the rendered string.</p>
|
|
2
2
|
<p><a href="https://www.npmjs.com/package/@rxap/handlebars"><img src="https://img.shields.io/npm/v/@rxap/handlebars?style=flat-square" alt="npm version"></a>
|
|
3
|
-
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
prettier"></a>
|
|
7
|
-
<img src="https://img.shields.io/librariesio/release/npm/@rxap/handlebars" alt="Libraries.io dependency status for latest release, scoped npm
|
|
8
|
-
package">
|
|
3
|
+
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly"></a>
|
|
4
|
+
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="styled with prettier"></a>
|
|
5
|
+
<img src="https://img.shields.io/librariesio/release/npm/@rxap/handlebars" alt="Libraries.io dependency status for latest release, scoped npm package">
|
|
9
6
|
<img src="https://img.shields.io/npm/dm/@rxap/handlebars" alt="npm">
|
|
10
|
-
<img src="https://img.shields.io/npm/l/@rxap/handlebars" alt="NPM">
|
|
11
|
-
<a href="#installation">Installation</a></p>
|
|
7
|
+
<img src="https://img.shields.io/npm/l/@rxap/handlebars" alt="NPM"></p>
|
|
12
8
|
<ul>
|
|
9
|
+
<li><a href="#installation">Installation</a></li>
|
|
13
10
|
<li><a href="#generators">Generators</a>
|
|
14
11
|
<ul>
|
|
15
12
|
<li><a href="#init">init</a></li>
|
|
16
13
|
</ul>
|
|
17
14
|
</li>
|
|
18
15
|
</ul>
|
|
19
|
-
<a id="installation
|
|
20
|
-
<pre><code
|
|
21
|
-
</code><button>Copy</button></pre>
|
|
16
|
+
<a id="installation" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Installation<a href="#installation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p><strong>Add the package to your workspace:</strong></p>
|
|
17
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@rxap/handlebars</span>
|
|
18
|
+
</code><button type="button">Copy</button></pre>
|
|
22
19
|
|
|
23
|
-
<p><strong>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
>
|
|
27
|
-
Initialize the package in the workspace
|
|
20
|
+
<p><strong>Install peer dependencies:</strong></p>
|
|
21
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@angular/core@^19.1.3</span><span class="hl-1"> </span>
|
|
22
|
+
</code><button type="button">Copy</button></pre>
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
<p><strong>Execute the init generator:</strong></p>
|
|
25
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/handlebars:init</span>
|
|
26
|
+
</code><button type="button">Copy</button></pre>
|
|
27
|
+
|
|
28
|
+
<a id="generators" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Generators<a href="#generators" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><a id="init" class="tsd-anchor"></a><h2 class="tsd-anchor-link">init<a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><blockquote>
|
|
29
|
+
<p>Initialize the package in the workspace</p>
|
|
30
|
+
</blockquote>
|
|
31
|
+
<pre><code class="bash"><span class="hl-0">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/handlebars:init</span>
|
|
32
|
+
</code><button type="button">Copy</button></pre>
|
|
33
|
+
|
|
34
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#installation"><span>Installation</span></a><a href="#generators"><span>Generators</span></a><ul><li><a href="#init"><span>init</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@rxap/handlebars</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/docs/markdown/README.md
CHANGED
|
@@ -5,33 +5,35 @@
|
|
|
5
5
|
Provides an Angular pipe that compiles Handlebars templates. The pipe takes a template string and a context object as input. It then uses Handlebars to compile the template with the provided context, returning the rendered string.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@rxap/handlebars)
|
|
8
|
-
[](https://github.com/prettier/prettier)
|
|
12
|
-

|
|
8
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
9
|
+
[](https://github.com/prettier/prettier)
|
|
10
|
+

|
|
14
11
|

|
|
15
|
-

|
|
16
|
-
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
- [Installation](#installation)
|
|
17
15
|
- [Generators](#generators)
|
|
18
|
-
|
|
16
|
+
- [init](#init)
|
|
17
|
+
|
|
18
|
+
# Installation
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
**Add the package to your workspace:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @rxap/handlebars
|
|
23
|
+
```
|
|
24
|
+
**Install peer dependencies:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn add @angular/core@^19.1.3
|
|
27
|
+
```
|
|
28
|
+
**Execute the init generator:**
|
|
29
|
+
```bash
|
|
30
|
+
yarn nx g @rxap/handlebars:init
|
|
22
31
|
```
|
|
23
|
-
**Install peer dependencies:** ```bash yarn add
|
|
24
|
-
@angular/core@^19.1.3
|
|
25
|
-
```
|
|
26
|
-
**Execute the init generator:** ```bash yarn nx g
|
|
27
|
-
@rxap/handlebars:init ```
|
|
28
32
|
# Generators
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
>
|
|
33
|
-
Initialize the package in the workspace
|
|
34
|
+
## init
|
|
35
|
+
> Initialize the package in the workspace
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
```bash
|
|
38
|
+
nx g @rxap/handlebars:init
|
|
39
|
+
```
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: HandlebarsPipe
|
|
8
8
|
|
|
9
|
-
Defined in: [handlebars.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [handlebars.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L11)
|
|
10
10
|
|
|
11
11
|
## Implements
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@ Defined in: [handlebars.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/969f
|
|
|
28
28
|
|
|
29
29
|
> **transform**(`value`, `context`): `string`
|
|
30
30
|
|
|
31
|
-
Defined in: [handlebars.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
31
|
+
Defined in: [handlebars.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/handlebars/src/lib/handlebars.pipe.ts#L13)
|
|
32
32
|
|
|
33
33
|
#### Parameters
|
|
34
34
|
|