'.', '/');
thisPackage = thisPackage.replaceAll(
CustomLayoutUsingTemplate.class.getSimpleName() + "$", "");
- String template = thisPackage + "template.html";
+ String template = thisPackage + "template.htm";
InputStream is = getClassLoader().getResourceAsStream(template);
try {
layout = new CustomLayout(is);
--- /dev/null
+<b>Contents</b>
+<div location="location1">This is where the first component goes</div>
+<div style="width: 500px; border: 1 px solid blue; margin: 10px;" location="location2">This is where the second component goes</div>
+<b>End of template</b>
\ No newline at end of file
+++ /dev/null
-<b>Contents</b>
-<div location="location1">This is where the first component goes</div>
-<div style="width: 500px; border: 1 px solid blue; margin: 10px;" location="location2">This is where the second component goes</div>
-<b>End of template</b>
\ No newline at end of file