Skip to content

Commit 2fbfe31

Browse files
committed
Added getGeneratedPages().
1 parent c2d325d commit 2fbfe31

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/app.lua2p

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ local function setup()
656656

657657
getOutputtedFiles = function()
658658
-- There's no reason to restrict context for this function, I don't think. 2021-04-27
659-
660659
local fileInfos = {}
661660

662661
for _, entry in ipairs(writtenOutputEntries) do
@@ -674,6 +673,19 @@ local function setup()
674673
return fileInfos
675674
end,
676675

676+
getGeneratedPages = function() -- @Doc
677+
-- Just like getOutputtedFiles(), there's no reason to restrict context for this function, I don't think. 2021-05-18
678+
local generatedPages = {}
679+
680+
for _, page in ipairs(pages) do
681+
if page._isGenerated then
682+
table.insert(generatedPages, getProtectionWrapper(page, "page"))
683+
end
684+
end
685+
686+
return generatedPages -- Should we sort these?
687+
end,
688+
677689
getDataTextParsers = function()
678690
local _dataParsers = {}
679691

0 commit comments

Comments
 (0)