Skip to content

Commit

Permalink
Merge pull request #68 from syumai/release-0.9.3
Browse files Browse the repository at this point in the history
Release 0.9.3
  • Loading branch information
syumai committed Nov 19, 2020
2 parents b94ea1e + 271452d commit 282e512
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
## Usage

```ts
import * as dejs from 'https://deno.land/x/[email protected].2/mod.ts';
import * as dejs from "https://deno.land/x/[email protected].3/mod.ts";
```

- **`renderFile`**`(filePath: string, params: Params): Promise<Deno.Reader>`
Expand Down Expand Up @@ -52,11 +52,11 @@ import * as dejs from 'https://deno.land/x/[email protected]/mod.ts';

```ts
const { cwd, stdout, copy } = Deno;
import { renderFile } from 'https://deno.land/x/dejs/mod.ts';
import { renderFile } from "https://deno.land/x/dejs/mod.ts";

(async () => {
const output = await renderFile(`${cwd()}/template.ejs`, {
name: 'world',
name: "world"
});
await copy(output, stdout);
})();
Expand All @@ -77,7 +77,7 @@ $ deno index.ts

```ts
const { cwd, stdout, copy } = Deno;
import { render } from 'https://deno.land/x/dejs/mod.ts';
import { render } from "https://deno.land/x/dejs/mod.ts";

const template = `<body>
<% if (name) { %>
Expand All @@ -87,7 +87,7 @@ const template = `<body>

(async () => {
const output = await render(template, {
name: 'world',
name: "world"
});
await copy(output, stdout);
})();
Expand Down Expand Up @@ -136,7 +136,7 @@ await include(filePath, params)

```ts
const { cwd, stdout, copy } = Deno;
import { renderFile } from 'https://deno.land/x/dejs/mod.ts';
import { renderFile } from "https://deno.land/x/dejs/mod.ts";

(async () => {
const output = await renderFile(`${cwd()}/views/main.ejs`);
Expand Down

0 comments on commit 282e512

Please sign in to comment.