Skip to content

Commit

Permalink
updating readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanquera committed May 26, 2024
1 parent caad2b0 commit 7aef433
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ $ npm -i @ossph/temple
## Server Usage

```js
import { document } from '@ossph/temple/server';
//make a template document engine
const engine = document({...options...});
//make a render callback
const render = await engine('./page.html');
import temple from '@ossph/temple/server';
//make a template engine
const engine = temple({...options...});
//load a Temple file
const render = await engine.load('./page.html');
//render final HTML
const results = render({...props...});
```
Expand Down Expand Up @@ -160,7 +160,7 @@ const results = render({...props...});
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
</head>
<body class="light">
<header class="title">{title}</header>
<header class="title">{potitle}</header>
<div class="logo">
<img src="/temple-logo.png" alt="Logo" />
</div>
Expand Down
10 changes: 5 additions & 5 deletions packages/temple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ $ npm -i @ossph/temple
## Server Usage

```js
import { document } from '@ossph/temple/server';
//make a template document engine
const engine = document({...options...});
//make a render callback
const render = await engine('./page.html');
import temple from '@ossph/temple/server';
//make a template engine
const engine = temple({...options...});
//load a Temple file
const render = await engine.load('./page.html');
//render final HTML
const results = render({...props...});
```
Expand Down

0 comments on commit 7aef433

Please sign in to comment.