1 /**
2 * Copyright © DiamondMVC 2018
3 * License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE)
4 * Author: Jacob Jensen (bausshf)
5 */
6 module diamondapp;
7 
8 import diamond.core : isWeb;
9 
10 static if (isWeb)
11 {
12   public import diamond.init.web;
13 }
14 else
15 {
16   import diamond.views;
17 
18   mixin GenerateViews;
19 
20   static foreach (viewResult; generateViewsResult)
21   {
22     mixin("#line 1 \"view: " ~ viewResult.name ~ "\"\n" ~ viewResult.source);
23   }
24 
25   mixin GenerateGetView;
26 
27   /// Shared static constructor for stand-alone applications.
28   shared static this()
29   {
30     // ...
31   }
32 }