Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • S slapos.recipe.template
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.recipe.template
  • Merge requests
  • !5

Closed
Created Jan 06, 2021 by Xavier Thompson@xavier_thompsonOwner
  • Report abuse
Report abuse

jinja2: Prevent the 'once' option from overwriting the rendered file

  • Overview 13
  • Commits 1
  • Changes 2

This allows passing path of the rendered file as the 'once' option, which in turn means the template will be rendered only if the destination file doesn't already exist. Previously doing this would result in an empty rendered file.

Edited Jan 07, 2021 by Xavier Thompson
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: template_without_overwrite
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7