genDomainModelWebHtml function

void genDomainModelWebHtml(
  1. File file
)

Implementation

void genDomainModelWebHtml(File file) {
  final text = '''
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8"/>
    <title>
      ${domainName}_${modelName}, developed with ednet_core.
    </title>
    <link rel="stylesheet" href="css/layout.css"/>
    <link rel="stylesheet" href="css/layout2.css"/>
    <link rel="stylesheet" href="css/link.css"/>
    <link rel="stylesheet" href="css/list.css"/>
    <link rel="stylesheet" href="css/menu.css"/>
    <link rel="stylesheet" href="css/page.css"/>
    <link rel="stylesheet" href="css/table.css"/>
  </head>
  <body>
    <header>
      <h2>
        ${domainName}_${modelName} in Dart with ednet_core
      </h2>
    </header>

    <section id="main">
      <header id='menu'/></header>
      <section id='entities'/></section>
      <footer>
        <a href="https://plus.google.com/+OndartMe">
          <img src="https://dl.dropbox.com/u/161496/dart/img/ondart3.png"/>
        </a>
        &nbsp;
        <a class="button" href="http://johns.github.io/">
          On Dart Blog
        </a>
      </footer>
    </section>

    <section id="side">
      <p>
        <span class="drop">The</span> ${domainName}_${modelName} app in
        <a  href="https://www.dartlang.org/" class="link">
          Dart.
        </a>
      </p>
      <p>
        <img src="img/${domainName}_${modelName}.png"/>
        The model is designed with
        <a  href="https://github.com/context-dev/model_concepts" class="link">
          Model Concepts.
        </a>
        The model code is generated by
        <a  href="https://github.com/context-dev/cms" class="link">
          EDNetCms ednet_code_generation.
        </a>
        The app
        <a  href="https://github.com/context-dev/${domainName}_${modelName}" class="link">
          code
        </a>
        is maintained at
        <a  href="https://github.com/" class="link">
          GitHub.
        </a>
      </p>
    </section>

    <script type="application/dart" src="${domainName}_${modelName}_web.dart"></script>
    <script src="packages/browser/dart.js"></script>
  </body>
</html>
  ''';
  addText(file, text);
}