Commits

Sam Adams  committed 36f304c

Move header definitions out of templates

  • Participants
  • Parent commits 7575c7f

Comments (0)

Files changed (1)

File crystallography-handler/src/main/java/net/chempound/crystal/display/CrystalStructureSplashPageWriter.java

 
     @Override
     public void write(final Model model, final URI aggregationUri, final Page page) throws IOException, TemplateException {
-        page.addParam("headers", headers);
+        page.addHeader(headers);
 
         final BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
         final TemplateHashModel staticModels = wrapper.getStaticModels();