jbakejbake-templates

Loop through all jbake configuration options


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?


Solution

  • You can use the following code to loop through all the config options:

    <%
    config.each{ k, v -> println "${k}:${v}<br>"}
    %>