Skip to content

Commit e83c15e

Browse files
committed
feat: update references to @photostructure/ejs in documentation and examples
1 parent 00245d9 commit e83c15e

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

.claude/settings.local.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git remote add:*)",
5+
"Bash(git fetch:*)",
6+
"Bash(npm run jake:*)",
7+
"Bash(gh run view:*)",
8+
"Bash(git -C /home/mrm/src/ejs remote:*)",
9+
"Bash(git -C /home/mrm/src/ejs log --oneline main --not upstream/main)",
10+
"Bash(git -C /home/mrm/src/ejs diff upstream/main -- lib/ejs.js)",
11+
"Bash(npm run test:types:*)",
12+
"Bash(xxd:*)",
13+
"Bash(git add:*)"
14+
]
15+
}
16+
}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ the both the public & private API docs, run `jake devdoc` instead.
130130
- `-%>` Trim-mode ('newline slurp') tag, trims following newline
131131
- `_%>` 'Whitespace Slurping' ending tag, removes all whitespace after it
132132

133-
For the full syntax documentation, please see [docs/syntax.md](https://github.com/mde/ejs/blob/master/docs/syntax.md).
133+
For the full syntax documentation, please see [docs/syntax.md](https://github.com/photostructure/ejs/blob/main/docs/syntax.md).
134134

135135
### Includes
136136

@@ -166,7 +166,7 @@ not supported in v3.0+.
166166
Custom delimiters can be applied on a per-template basis, or globally:
167167

168168
```javascript
169-
let ejs = require("ejs"),
169+
let ejs = require("@photostructure/ejs"),
170170
users = ["geddy", "neil", "alex"];
171171

172172
// Just one template
@@ -192,7 +192,7 @@ functions used to render templates. It's easy to plug in LRU caching using
192192
Node's `lru-cache` library:
193193

194194
```javascript
195-
let ejs = require("ejs"),
195+
let ejs = require("@photostructure/ejs"),
196196
LRU = require("lru-cache");
197197
ejs.cache = new LRU({ size: 100 }); // LRU cache with 100-item limit
198198
```
@@ -206,7 +206,7 @@ of the LRU.
206206
The default file loader is `fs.readFileSync`, if you want to customize it, you can set ejs.fileLoader.
207207

208208
```javascript
209-
let ejs = require("ejs");
209+
let ejs = require("@photostructure/ejs");
210210
let myFileLoad = function (filePath) {
211211
return "myFileLoad: " + fs.readFileSync(filePath);
212212
};
@@ -234,7 +234,7 @@ including headers and footers, like so:
234234

235235
## Client-side support
236236

237-
Go to the [Latest Release](https://github.com/mde/ejs/releases/latest), download
237+
Go to the [Latest Release](https://github.com/photostructure/ejs/releases/latest), download
238238
`./ejs.js` or `./ejs.min.js`. Alternately, you can compile it yourself by cloning
239239
the repository and running `jake build` (or `$(npm bin)/jake build` if jake is
240240
not installed globally).
@@ -276,7 +276,7 @@ fn(data, null, function (path, d) {
276276
}); // returns rendered string
277277
```
278278

279-
See the [examples folder](https://github.com/mde/ejs/tree/master/examples) for more details.
279+
See the [examples folder](https://github.com/photostructure/ejs/tree/main/examples) for more details.
280280

281281
## IDE Integration with Syntax Highlighting
282282

docs/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Delimiters
4242
The *starting* and *closing* tags contain a special string called the
4343
delimiter. In this document, all tags are shown using the `%` delimiter, which
4444
is the default. You can, however, change that to your liking. See
45-
https://github.com/mde/ejs#custom-delimiters for more information on how to
45+
https://github.com/photostructure/ejs#custom-delimiters for more information on how to
4646
change it.
4747

4848
Starting tags

examples/express/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var express = require('express');
22
var path = require('path');
3-
var ejs = require('ejs');
3+
var ejs = require('@photostructure/ejs');
44

55
var app = express();
66
app.set('views', path.join(__dirname, 'views'));

examples/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"start": "node ./app.js"
66
},
77
"dependencies": {
8-
"ejs": "^3.1.8",
8+
"@photostructure/ejs": "^5.0.0",
99
"express": "~4.16.0"
1010
}
1111
}

0 commit comments

Comments
 (0)