Is there any way to loop through all jbake configuration options? I know that you can do config.[option] for single options. But is there a way to get all of them?
Asked
Active
Viewed 56 times
0
-
What template engine do you want to do this in? – jonbullock Jan 18 '18 at 17:05
-
in the gsp template – Hengrui Jiang Jan 18 '18 at 18:56
1 Answers
2
You can use the following code to loop through all the config options:
<%
config.each{ k, v -> println "${k}:${v}<br>"}
%>

jonbullock
- 339
- 1
- 11