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://codercto.com/soft/d/3626.html

Web Design Index by Content 3 (Web Design Index)

Web Design Index by Content 3 (Web Design Index)

Pepin Press (EDT) / Pepin Press / 2007-11 / USD 29.99

Would you like an overview of the state of the art in web design in a specific field? WEB DESIGN INDEX BY CONTENT provides exactly that: every year, 500 new designs are selected and grouped in more th......一起来看看 《Web Design Index by Content 3 (Web Design Index)》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试