/*
 *   Copyright 2019 Jasha Joachimsthal
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package eu.jasha.demo.sbtfragments.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import ch.mfrey.thymeleaf.extras.with.WithDialect;
import nz.net.ultraq.thymeleaf.LayoutDialect;

@Configuration
public class ViewConfiguration {

  @Bean
  public LayoutDialect layoutDialect() {
    return new LayoutDialect();
  }

  @Bean
  public WithDialect withDialect() {
    return new WithDialect();
  }

}
@@ -660,16 +660,127 @@
 onfig;%0A%0A
+import ch.mfrey.thymeleaf.extras.with.WithDialect;%0Aimport nz.net.ultraq.thymeleaf.layoutdialect.LayoutDialect;%0A
 import o
@@ -889,106 +889,8 @@
 n;%0A%0A
-import ch.mfrey.thymeleaf.extras.with.WithDialect;%0Aimport nz.net.ultraq.thymeleaf.LayoutDialect;%0A%0A
 @Con
@@ -934,16 +934,18 @@
 tion %7B%0A%0A
+  
   @Bean%0A
@@ -942,24 +942,26 @@
     @Bean%0A  
+ 
+ 
 public Layou
@@ -983,32 +983,36 @@
 Dialect() %7B%0A    
+  
+  
 return new Layou
@@ -1023,21 +1023,25 @@
 lect();%0A
+  
   %7D%0A%0A
+  
   @Bean%0A
@@ -1042,16 +1042,18 @@
 @Bean%0A  
+ 
+ 
 public W
@@ -1075,24 +1075,28 @@
 Dialect() %7B%0A
+    
     return n
@@ -1113,14 +1113,16 @@
 lect();%0A
+  
   %7D%0A%0A%7D

Update import