Node.js 框架 Kiss.js

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-15 11:27:39

软件介绍

Kiss.js 是 Node.js 的 web 框架,使用 CoffeeScript 编写,简单而带感。Kiss 是面向对象的 Node.js 框架。

Node.js frameworks

示例:

kiss = require "kiss.js"
controllers = require "../controllers/controllers"
args = process.argv.splice 2
address = "127.0.0.1"
port = 1337
if args[0]
    address = args[0]
if args[1]
    port = parseInt args[1] 
my_controller = new controllers.MyController()
options =
    application:
        address: address || "127.0.0.1"
        port: port || 1337
    views:
        static_path: __dirname + "/../views/static/"
        template_path: __dirname + "/../"
        locale_path: __dirname + "/../views/locales/"
        cookie_secret: "ertyu78f020fk"
    urls:
        "/": my_controller
        "/user":
            "/posts": my_controller
app = new kiss.core.application.Application(options)
app.start()


本文地址:https://www.codercto.com/soft/d/3626.html

Game Engine Architecture, Second Edition

Game Engine Architecture, Second Edition

Jason Gregory / A K Peters/CRC Press / 2014-8-15 / USD 69.95

A 2010 CHOICE outstanding academic title, this updated book covers the theory and practice of game engine software development. It explains practical concepts and techniques used by real game studios,......一起来看看 《Game Engine Architecture, Second Edition》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具