Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-artTemplate

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-artTemplate - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

package.json
{
"name": "koa-artTemplate",
"version": "2.0.2",
"version": "2.0.3",
"description": "koa artTemplate middleware",

@@ -5,0 +5,0 @@ "main": "index.js",

[![Build Status](https://travis-ci.org/Lxxyx/koa-artTemplate.svg?branch=master)](https://travis-ci.org/Lxxyx/koa-artTemplate)
[![codecov](https://codecov.io/gh/Lxxyx/koa-artTemplate/branch/master/graph/badge.svg)](https://codecov.io/gh/Lxxyx/koa-artTemplate)
# koa-artTemplate
[![codecov](https://codecov.io/gh/Lxxyx/koa-artTemplate/branch/next/graph/badge.svg)](https://codecov.io/gh/Lxxyx/koa-artTemplate)
# koa-artTemplate for koa2
koa-artTemplate is a koa middleware for artTemplate

@@ -9,3 +9,3 @@

```javascript
npm i koa-artTemplate --save
npm i koa-artTemplate@next --save
```

@@ -15,12 +15,15 @@

### Koa2
```javascript
var koa = require('koa')
var koaArt = require('koa-artTemplate')
import Koa from 'koa'
import koaArt from 'koa-artTemplate'
import path from 'path'
var app = new koa()
const app = new koa()
app.use(koaArt('../views'))
app.use(koaArt(path.resolve(__dirname, 'views/')))
app.use(function *(next) {
this.body = this.render('index')
app.use((ctx, next) => {
ctx.body = ctx.render('index')
})

@@ -27,0 +30,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc