// Path: Java/src/com/yourtion/TinyWeb/RenderingStrategy.java
// public interface RenderingStrategy {
// 
//     public String renderView(Map<String, List<String>> model);
// 
// }


import com.yourtion.TinyWeb.RenderingStrategy;
import java.util.List;
import java.util.Map;
package com.yourtion.TinyWeb.Example;



/**
 * Created by Yourtion on 9/5/16.
 */
public class GreetingRenderingStrategy implements RenderingStrategy {

    @Override
    public String renderView(Map<String, List<String>> model) {
        List<String> greetings = model.get("greetings");
        StringBuffer responseBody = new StringBuffer();
        responseBody.append("<h1>Friendly Greetings:</h1>\n");
// Path: Java/src/com/yourtion/TinyWeb/RenderingStrategy.java
// public interface RenderingStrategy {
// 
//     public String renderView(Map<String, List<String>> model);
// 
// }


// Path: Java/src/com/yourtion/TinyWeb/Example/GreetingRenderingStrategy.java
import com.yourtion.TinyWeb.RenderingStrategy;
import java.util.List;
import java.util.Map;

package com.yourtion.TinyWeb.Example;



/**
 * Created by Yourtion on 9/5/16.
 */
public class GreetingRenderingStrategy implements RenderingStrategy {

    @Override
    public String renderView(Map<String, List<String>> model) {
        List<String> greetings = model.get("greetings");
        StringBuffer responseBody = new StringBuffer();
        responseBody.append("<h1>Friendly Greetings:</h1>\n");
        for (String greeting : greetings) {