Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
container-manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nomad-lab
container-manager
Commits
c5d1e50d
Commit
c5d1e50d
authored
Dec 02, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed handlebars helpers
parent
9d192a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/components.js
app/components.js
+2
-2
No files found.
app/components.js
View file @
c5d1e50d
...
...
@@ -24,7 +24,7 @@ for (k in br)
baseRepl
[
k
]
=
br
[
k
];
handlebars
.
registerHelper
(
'
json
'
,
function
(
object
){
return
new
H
andlebars
.
SafeString
(
stringify
(
object
));
return
new
h
andlebars
.
SafeString
(
stringify
(
object
));
});
handlebars
.
registerHelper
(
'
prettyJson
'
,
function
(
object
){
...
...
@@ -41,7 +41,7 @@ handlebars.registerHelper('e', function(object){
let
s
=
stringify
(
object
)
if
(
!
s
.
startsWith
(
'
"
'
))
s
=
stringify
(
s
)
return
new
H
andlebars
.
SafeString
(
s
.
slice
(
1
,
s
.
length
-
1
))
return
new
h
andlebars
.
SafeString
(
s
.
slice
(
1
,
s
.
length
-
1
))
});
// Create a template from the given string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment