Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@prairielearn/html

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prairielearn/html - npm Package Compare versions

Comparing version
4.0.5
to
4.0.6
+6
-0
CHANGELOG.md
# @prairielearn/html
## 4.0.6
### Patch Changes
- 4b79275: Upgrade all JavaScript dependencies
## 4.0.5

@@ -4,0 +10,0 @@

+6
-6
{
"name": "@prairielearn/html",
"version": "4.0.5",
"version": "4.0.6",
"type": "module",

@@ -19,8 +19,8 @@ "main": "dist/index.js",

"@prairielearn/tsconfig": "^0.0.0",
"@types/node": "^20.14.15",
"@types/node": "^20.17.5",
"c8": "^10.1.2",
"chai": "^5.1.1",
"mocha": "^10.7.3",
"tsx": "^4.17.0",
"typescript": "^5.5.4"
"chai": "^5.1.2",
"mocha": "^10.8.2",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},

@@ -27,0 +27,0 @@ "c8": {

@@ -45,3 +45,3 @@ # `@prairielearn/html`

PrairieLearn used (and still uses) EJS to render most views. However, using a tagged template literal and pure JavaScript to render views has a number of advantages:
In the past, PrairieLearn used EJS to render most views. However, using a tagged template literal and pure JavaScript to render views has a number of advantages:

@@ -52,2 +52,2 @@ - Prettier will automatically format the content of any `html` tagged template literal; EJS does not have any automatic formatters.

If you want to use existing EJS partials inside of an `html` tagged template literal, check out the `@prairielearn/html-ejs` package. EJS-related functionality is deliberately located in a separate package so that `@prairielearn/html` can be used in the browser, since the `ejs` package makes use of Node-only features.
If you want to use existing EJS partials inside of an `html` tagged template literal, check out the `@prairielearn/html-ejs` package. EJS-related functionality is deliberately located in a separate package so that `@prairielearn/html` can be used in the browser, since the `ejs` package makes use of Node-only features. Note, though, that this package is no longer used in PrairieLearn itself, and as such will no longer be actively maintained.