File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export * as path from "https://deno.land/std@0.131.0/path/mod.ts";
55export { green , blue } from "https://deno.land/std@0.131.0/fmt/colors.ts" ;
66export { assertEquals , assert } from "https://deno.land/std@0.131.0/testing/asserts.ts" ;
77
8- export { Application } from "https://deno.land/x/oak@v10.5.1 /mod.ts" ;
8+ export { Application } from "https://deno.land/x/oak@v10.6.0 /mod.ts" ;
99
1010
1111export * as eta from 'https://deno.land/x/eta@v1.12.3/mod.ts'
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import type {
22 Context ,
33 RouteParams ,
44 State ,
5- } from "https://deno.land/x/oak@v10.5.1 /mod.ts" ;
5+ } from "https://deno.land/x/oak@v10.6.0 /mod.ts" ;
66
77import type { ViewConfig , Adapter , Engine } from "../../viewEngine.type.ts" ;
88import { getTemplate } from "./oak.utils.ts" ;
99
10- declare module "https://deno.land/x/oak@v10.5.1 /mod.ts" {
10+ declare module "https://deno.land/x/oak@v10.6.0 /mod.ts" {
1111 // App level Context
1212 interface Context {
1313 render : ( fileName : string , data ?: object ) => void ;
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ export const etaEngine: Engine = async (
88 filename : string = ""
99) : Promise < string > => {
1010
11+ if ( config . viewRoot ) {
12+ eta . configure ( { views : config . viewRoot } ) ;
13+ }
14+
1115 return new Promise < string > ( async ( resolve , reject ) => {
1216 try {
1317 const result = await eta . render ( template , data ) as string
You can’t perform that action at this time.
0 commit comments