Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
0c2f281e
Commit
0c2f281e
authored
Oct 02, 2015
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gh-4047'
parents
1e801723
f86eed86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
MustacheCompilerFactoryBean.java
...t/autoconfigure/mustache/MustacheCompilerFactoryBean.java
+18
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheCompilerFactoryBean.java
View file @
0c2f281e
...
...
@@ -48,6 +48,10 @@ public class MustacheCompilerFactoryBean implements FactoryBean<Mustache.Compile
private
Compiler
compiler
;
private
String
defaultValue
;
private
Boolean
emptyStringIsFalse
;
public
void
setDelims
(
String
delims
)
{
this
.
delims
=
delims
;
}
...
...
@@ -68,6 +72,14 @@ public class MustacheCompilerFactoryBean implements FactoryBean<Mustache.Compile
this
.
collector
=
collector
;
}
public
void
setDefaultValue
(
String
defaultValue
)
{
this
.
defaultValue
=
defaultValue
;
}
public
void
setEmptyStringIsFalse
(
Boolean
emptyStringIsFalse
)
{
this
.
emptyStringIsFalse
=
emptyStringIsFalse
;
}
@Override
public
Mustache
.
Compiler
getObject
()
throws
Exception
{
this
.
compiler
=
Mustache
.
compiler
();
...
...
@@ -86,6 +98,12 @@ public class MustacheCompilerFactoryBean implements FactoryBean<Mustache.Compile
if
(
this
.
collector
!=
null
)
{
this
.
compiler
=
this
.
compiler
.
withCollector
(
this
.
collector
);
}
if
(
this
.
defaultValue
!=
null
)
{
this
.
compiler
=
this
.
compiler
.
defaultValue
(
this
.
defaultValue
);
}
if
(
this
.
emptyStringIsFalse
!=
null
)
{
this
.
compiler
=
this
.
compiler
.
emptyStringIsFalse
(
this
.
emptyStringIsFalse
);
}
return
this
.
compiler
;
}
...
...
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