Ninja Power Manifesto

    htdoc

    0.0.1 • Public • Published
    htdoc = require 'htdoc'
    express = require 'express'
     
    doc =
      html:
        """
        <html>
          <head>
            <title>Hello.</title>
          </head>
          <body>
            <h1>Hello.</h1>
          </body>
        </html>
        """
      css:
        """
        h1 {
          color: green;
          font-family: sans-serif;
        }
        """
      js:
        """
        console && console.log('Hi!')
        """
     
    app = express.createServer()
     
    app.get '/'(req, res) ->
      res.send htdoc(doc)
     
    app.listen 3000

    Keywords

    none

    Install

    npm i htdoc

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • bat