We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb1983 commit 437027aCopy full SHA for 437027a
sample/Modules/AnotherModule.cs
@@ -0,0 +1,16 @@
1
+namespace Carter.HtmlNegotiator.Sample.Modules
2
+{
3
+ using Response;
4
+
5
+ public class AnotherModule : CarterModule
6
+ {
7
+ public AnotherModule() : base("/another")
8
9
+ Get("/",
10
+ async (req, res, routeData) =>
11
12
+ await res.Negotiate(new {title = "Hello World!", message = "Hello from Another Module!"});
13
+ });
14
+ }
15
16
+}
sample/Views/Another/index.hbs
@@ -0,0 +1,9 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <title>{{title}}</title>
+ </head>
+ <body>
+ <h1>{{message}}</h1>
+ </body>
+</html>
0 commit comments