You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be added ability to add single-line comments to array definitions, if multiline works too. Its usefull for defining arrays in latte to keep understandable code
{var $aa = [
'a'=>'b' /* this comment type works ok */
, 'c'=>'d' // this comment type causes Latte CompileException
]}
as usage example, i use array in layout latte to define linked js/css - i have a small fn made that goes over array and echoe link tags for js and css files, and also adds timestamp value if file is found - perfect for caching issues where js file linked without timestamp, may load old code, depending on cache settings of server. And it would be nice to add notes sometimes, about which file contains what or ahy added etc...
The text was updated successfully, but these errors were encountered:
dg
changed the title
comments inside array in tag
feature request: inline comments in tag
Nov 8, 2023
There should be added ability to add single-line comments to array definitions, if multiline works too. Its usefull for defining arrays in latte to keep understandable code
as usage example, i use array in layout latte to define linked js/css - i have a small fn made that goes over array and echoe link tags for js and css files, and also adds timestamp value if file is found - perfect for caching issues where js file linked without timestamp, may load old code, depending on cache settings of server. And it would be nice to add notes sometimes, about which file contains what or ahy added etc...
The text was updated successfully, but these errors were encountered: