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 Standards Creativity

Web Standards Creativity

Andy Budd、Dan Rubin、Jeff Croft、Cameron Adams、Ethan Marcotte、Andy Clarke、Ian Lloyd、Mark Boulton、Rob Weychert、Simon Collison、Derek Featherstone / friends of ED / March 19, 2007 / $49.99

Book Description * Be inspired by 10 web design lessons from 10 of the world's best web designers * Get creative with cutting-edge XHTML, CSS, and DOM scripting techniques * Learn breathtakin......一起来看看 《Web Standards Creativity》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具