Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Created June 6, 2023 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitzberger/e5b6589cb2096597a0ce390b9c01b384 to your computer and use it in GitHub Desktop.
Save kitzberger/e5b6589cb2096597a0ce390b9c01b384 to your computer and use it in GitHub Desktop.
Tips for fluid templating
Berechnung und Zuweisung zu neuer Variable:
✗ {imageWidth / 2.24 -> f:variable(name: 'imageHeight')}
✓ {f:variable(name:'imageHeight', value:'{imageWidth / 2.71}')}
Casting
✗ {imageHeight as integer -> f:variable(name:'imageHeight')}
✓ {f:variable(name:'imageHeight',value:'{imageHeight as integer}')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment