Skip to content

An unofficial taglib for Marko.js which adds `<let>` and `<const>` tags.

License

Notifications You must be signed in to change notification settings

Hesulan/marko-taglib-let-const

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

This is a simple taglib for Marko.js (github.com/marko-js/marko) which adds <let> and <const> tags, using functionality which was already built into the compiler but never exposed through built-in tags.

The reason for this being a separate package is to allow developers to experiment with these tags without breaking compatibility, as discussed in marko-js/marko#428. If and when these tags are added the Marko compiler or an official taglib, this package is to be considered deprecated.

Usage

The <let> and <const> tags are functionally identical to the built-in <var> tag (as of Marko v3.12.0) except that they generate the let and const keywords rather than var in the compiled output.

About

An unofficial taglib for Marko.js which adds `<let>` and `<const>` tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published