feat: add support for page script injection and aggregation summaries#7
Open
alirezaheydari wants to merge 7 commits intopagedjs:mainfrom
Open
feat: add support for page script injection and aggregation summaries#7alirezaheydari wants to merge 7 commits intopagedjs:mainfrom
alirezaheydari wants to merge 7 commits intopagedjs:mainfrom
Conversation
added 6 commits
January 5, 2026 12:46
- Added a new option `--page-script` to the CLI for specifying a script to be injected into each page before serialization. - Updated the Printer class to handle the new `pageScript` option, allowing user-defined scripts to modify page content. - Implemented aggregation of table data with `data-aggregate` attributes, summarizing values and appending them to the page. - Enhanced error handling for user scripts and aggregation processes to prevent rendering failures. - Updated package.json to include Gulp as a dependency.
Author
|
@copilot |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--page-scriptto the CLI for specifying a script to be injected into each page before serialization.pageScriptoption, allowing user-defined scripts to modify page content.data-aggregateattributes, summarizing values and appending them to the page.