Skip to content

Commit d5ded4d

Browse files
committed
templating doc update
1 parent 7c3dda4 commit d5ded4d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ out = person(
310310
print(out)
311311

312312
# you can also write the output to a file:
313-
file = open(filePath, "r"); print(file, out); close(file)
313+
Base.write(filePath, out)
314314
```
315315

316316
-------------------------------------------------------
@@ -319,11 +319,6 @@ file = open(filePath, "r"); print(file, out); close(file)
319319
You can render variables into html/xml files. However, you can't have multiline control flow Julia code in this method.
320320

321321
```julia
322-
# only to set path to current file
323-
cd(@__DIR__)
324-
325-
326-
327322
# you can create a file and edit the file directly by using
328323
newTemplate("person")
329324

docs/src/templating.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ out = person(
4545
print(out)
4646

4747
# you can also write the output to a file:
48-
file = open(filePath, "r"); print(file, out); close(file)
48+
Base.write(filePath, out)
4949
```
5050

5151
-------------------------------------------------------
@@ -54,11 +54,6 @@ file = open(filePath, "r"); print(file, out); close(file)
5454
You can render variables into html/xml files. However, you can't have multiline control flow Julia code in this method.
5555

5656
```julia
57-
# only to set path to current file
58-
cd(@__DIR__)
59-
60-
61-
6257
# you can create a file and edit the file directly by using
6358
newTemplate("person")
6459

0 commit comments

Comments
 (0)