title: ASP.NET 5 / MVC 6 AppSettings
body: <p>[TL;DR]: How do I access AppSettings data without using dependency injection in MVC 6?</p>
  
  <p>I'm trying to reach some app setting data from a _Layout.cshtml in my MVC 6 app.</p>
  
  <p>I understand (and have implemented) the "Options" patterns as described at <a href="http://docs.asp.net/en/latest/fundamentals/configuration.html#using-options-and-configuration-objects" rel="nofollow">http://docs.asp.net/en/latest/fundamentals/configuration.html#using-options-and-configuration-objects</a>.  </p>
  
  <p>It works well when I need to inject some settings into specific controllers, but I can't quite work out how to inject Options into a shared _Layout.cshtml, since it doesn't have an associated controller.</p>
  
  <p>Is there a way to access Configuration data without using DI?</p>