epii-server 具有以下特性: 基于 koa 的 node 应用框架

程序名称:epii-server 具有以下特性:

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

epii-server 具有以下特性: 介绍

epii-server是基于koa的node应用框架,服务与构建渲染工具分离,提供更纯粹的MVC开发体验。

具有以下特性:

MVC 管道

(Request)
  => Middleware => Controller => View =>
(Response)

**ASP.net-liked**

不同的ActionResult会产生不同的响应

// controller
module.exports = [
  {
    path: '/',
    verb: 'get',
    body: async function () {
      // response text/plain
      return this.epii.text('text output')
      // response application/json
      return this.epii.json({ state: true })
      // response text/html by VieWrender
      return this.epii.view({ name: 'Li Lei' })
      // response application/octet-stream
      return this.epii.file('dataset.csv')
    }
  }
]

支持自定义布局

// client/index.Meta.js
module.exports = {
  base: 'simple', // inherit simple layout
  head: {
    styles: 'client/index.css'
  },
  body: {
    holder: 'client/index.html',
    scripts: 'client/index.js'
  }
}
// layout/simple.Meta.js
module.exports = {
  head: {
    title: 'EPII Avatar',
    Metas: [],
    styles: 'reset.css',
    favico: 'epii-icon.png'
  },
  body: {
    scripts: 'jquery-2.2.2.min.js'
  }
}

epii-server 具有以下特性: 官网

https://github.com/epii-io/epii-node-server

相关编程语言

MuPlayer 是一款跨平台、轻量级的音频播放解决方案,...
OS FLV 是一个 开源和可嵌入网页的flv播放器。 这个...
DewPlayer音乐播放器,样式很简单,而且很实用.播放器...
JW FLV MEDIA PLAYER是一个开源的在网页上使用的Fla...
Speakker 是一个基于 Web 浏览器的音乐播放器,只提...
Player Framework 是一个开源的支持 HTML5 的视频播...