-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 73. Added printCsv keyword to make it as easy to generate a C…
…SV as it is to make an RSS feed.
- Loading branch information
Breck Yunits
authored and
Breck Yunits
committed
Apr 3, 2024
1 parent
c1c70c5
commit 57e67e8
Showing
7 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
printCsvParser | ||
description Prints out a group as a CSV. | ||
extends printFeedParser | ||
example | ||
printCsv index | ||
permalink posts.csv | ||
javascript | ||
compile() { | ||
const file = this.root.file | ||
const files = file.getFilesInGroupsForEmbedding(this.getWordsFrom(1)).map(file => file.file) | ||
const header = file.csvFields | ||
return `${header.join(",")}\n${files.map(file => file.toCsv()).join("\n")}` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import settings.scroll | ||
|
||
permalink posts.csv | ||
|
||
printCsv index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters