2.0.0 • Published 3 days ago

@prairielearn/html-ejs v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 days ago

@prairielearn/html-ejs

Utilities for rendering EJS templates for use with the @prairielearn/html package.

If you have an EJS partial that you'd like to use inside of an html tagged template literal, you can use the renderEjs helper:

<!-- hello.ejs -->
Hello, <%= name %>!
import { html } from '@prairielearn/html';
import { renderEjs } from '@prairielearn/html-ejs';

console.log(
  html`
    <div>Hello, world!</div>
    <div>${renderEjs(import.meta.url, "<%- include('./hello'); %>", { name: 'Anjali' })}</div>
  `.toString(),
);
2.0.0

3 days ago

1.1.19

1 month ago

1.1.18

2 months ago

1.1.17

2 months ago

1.1.16

3 months ago

1.1.15

4 months ago

1.1.14

5 months ago

1.1.9

8 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.1.6

9 months ago

1.1.5

10 months ago

1.1.12

6 months ago

1.1.11

7 months ago

1.1.10

7 months ago

1.1.13

6 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago