Skip to content

Commit

Permalink
Added getTemplates function to MemoryLoader (#660)
Browse files Browse the repository at this point in the history
* Added getTemplates function to MemoryLoader

* Change TemplateDefinition from private to public

Making the inner class TemplateDefinition public to allow external access for specific use-cases.
  • Loading branch information
ydcode authored Nov 27, 2023
1 parent 99af0ff commit c5fa796
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public void addTemplate(String templateName, String content) {
this.templateDefinitions.add(new TemplateDefinition(templateName, content));
}

public List<TemplateDefinition> getTemplates() {
return this.templateDefinitions;
}

@Override
public void setSuffix(String suffix) {
}
Expand Down Expand Up @@ -69,7 +73,7 @@ public boolean resourceExists(String templateName) {
return false;
}

private static class TemplateDefinition {
public static class TemplateDefinition {
public final String templateName;
public final String content;

Expand Down

0 comments on commit c5fa796

Please sign in to comment.