Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: inline comments in tag #341

Open
peminator opened this issue Jul 6, 2023 · 0 comments
Open

feature request: inline comments in tag #341

peminator opened this issue Jul 6, 2023 · 0 comments

Comments

@peminator
Copy link

peminator commented Jul 6, 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

{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...

@dg dg changed the title comments inside array in tag feature request: inline comments in tag Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant