package org.springframework.site.web.guides;

import org.springframework.site.web.NavSection;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.springframework.web.bind.annotation.RequestMethod.GET;
import static org.springframework.web.bind.annotation.RequestMethod.HEAD;

@Controller
@RequestMapping("/guides")
@NavSection("guides")
public class GuidesController {

	@RequestMapping(value = "", method = { GET, HEAD })
	public String index() {
		return "guides/index";
	}
}

@@ -39,16 +39,148 @@
 uides;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.site.domain.guides.GettingStartedService;%0A
 import o
@@ -269,16 +269,53 @@
 roller;%0A
+import org.springframework.ui.Model;%0A
 import o
@@ -612,16 +612,157 @@
 ller %7B%0A%0A
+%09private GettingStartedService service;%0A%0A%09@Autowired%0A%09public GuidesController(GettingStartedService service) %7B%0A%09%09this.service = service;%0A%09%7D%0A%0A
 %09@Reques
@@ -827,19 +827,84 @@
 g index(
-) %7B
+Model model) %7B%0A%09%09model.addAttribute(%22guides%22, service.listGuides());
 %0A%09%09retur

load list of guides in top level guide controller