{"modulePath":"github.com/iris-framework/iris","version":"v6.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nthis example will show you how you can set per-request data for a template outside of the main handler which calls the .Render, via middleware.\n\nRemember: .Render has the \"binding\" argument which can be used to send data to the template at any case.\n\n## Constants\n\n```go\nconst (\n\tDefaultTitle  = \"My Awesome Site\"\n\tDefaultLayout = \"layouts/layout.html\"\n)\n```\n\n","path":"github.com/iris-framework/iris/_examples/intermediate/view/context-view-data","name":"main","synopsis":"this example will show you how you can set per-request data for a template outside of the main handler which calls the .Render, via middleware.","isRedistributable":true}
