Pagegen

Latest version: v3.13.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

3.4.0

Added

- Mako template engine, now templates can have full power of Mako, incl if else, loops and full on python code execution
- Page headers/frontmatter support custom headers. These can be referenced in templates using format {{page.<header name>}}. Example, if in a page the following header is set 'this is a custom header: At last', then in a template the following '{{page.this is a custom header}}' will be replaced with 'At last'
- Template variable/placeholder page_file_name added, contains what you expect
- Template variable/placeholder page_relative_url added, contains url relative to web root
- Template variable/placeholder default_extension added, contains default file extension

Fixed

- Template page_file_name was incorrect for directories
- --serve disables deploy and post_deploy hooks for serving locally
- Removed superflous printing
- Sitemaps now have corecct urls
- Hooks now only execute if they have execute rights (linux)

3.2.0

Added

- Added page header Exclude html minify, set to True to disable html minifying of the page
- New command argument -s|--serve <environment>, builds and serves the envionment on localhost, rebuilds if content is changed. Will force base_url to localhos:8000 when serving

Changed

- Moved deploy_scripts functionality to new deploy hook
- Command line arguments changed. Environment must now be specified with -g or -s. --help argument added

Fixed

- Executable content files where returning bytes instead of strings, this is python3 behaviour and has been fixed
- Page header preserve file name now is enforced, before the file name could have the default extension added, if specified in site.conf'
- Multiple variable in a line containing : where matching too much

3.1.1

Changed

- pagegen --init now includes examples of scripts

3.1.0

Added

- Custom deploy scripts per environment, currently ftp is supported
- Minify html, css and javascript options

Changed

- Refactored variable initializing, under the hood..

Removed

- Upload to FTP functionality. New deploy_scripts/ftp.py are drop in replacement

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.