Skip to content

Commit

Permalink
feat: rename package to @koa/ejs (closes #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Oct 4, 2022
1 parent 6d5ef98 commit 2b457b5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions History.md → HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# History

**[PLEASE REFERENCE THE RELEASES TAB FOR THE LATEST CHANGES](https://github.com/koajs/ejs/releases)**

4.3.0 / 2019-12-04
==================

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# koa-ejs
# @koa/ejs

> Koa ejs view render middleware. support all feature of [ejs](https://github.com/mde/ejs).
[![Build Status](https://secure.travis-ci.org/koajs/ejs.svg)](http://travis-ci.org/koajs/ejs)

[![NPM](https://nodei.co/npm/koa-ejs.png?downloads=true)](https://nodei.co/npm/koa-ejs/)
[![NPM](https://nodei.co/npm/@koa/ejs.png?downloads=true)](https://nodei.co/npm/@koa/ejs/)

## Usage

### Example

```js
const Koa = require("koa");
const render = require("koa-ejs");
const render = require("@koa/ejs");
const path = require("path");

const app = new Koa();
Expand Down Expand Up @@ -47,7 +47,7 @@ Or you can checkout the [example](https://github.com/koajs/ejs/tree/master/examp

### Layouts

`koa-ejs` supports layouts. The default layout file is `layout`. If you want to change default layout file, use `settings.layout`. Also you can specify layout by `options.layout` in `await ctx.render`.
`@koa/ejs` supports layouts. The default layout file is `layout`. If you want to change default layout file, use `settings.layout`. Also you can specify layout by `options.layout` in `await ctx.render`.
Also you can set `layout = false` to disable the layout.

```
Expand Down
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* koa-ejs - example/app.js
* @koa/ejs - example/app.js
*
* Copyright(c) 2017 dead_horse <dead_horse@qq.com>
* MIT Licensed
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* koa-ejs
* @koa/ejs
*
* Copyright(c) 2017 dead_horse <dead_horse@qq.com>
* Copyright(c) 2021-2022 3imed-jaberi <imed-jaberi@outlook.com>
Expand All @@ -14,7 +14,7 @@

const ejs = require('ejs')
const path = require('path')
const debug = require('debug')('koa-ejs')
const debug = require('debug')('@koa/ejs')

/**
* Temp assigned for override later
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "koa-ejs",
"name": "@koa/ejs",
"version": "4.3.0",
"description": "ejs render middleware for Koa.js",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion test/write-response.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* koa-ejs - test/koa-ejs.test.js
* @koa/ejs - test/koa/ejs.test.js
* Copyright(c) 2017 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/
Expand Down

0 comments on commit 2b457b5

Please sign in to comment.