
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
github.com/veigaribo/template
Redistribution of the standard text/template
Go package with the
following modifications:
~
and #
space trimmers:~
will only trim whitespace characters that do not represent a new
line (CR or LF).
line 1
{{~ "line 2"}}
line 3
=>
line 1
line 2
line 3
#
will do:
If the trimmer is on the left, it will seek whitespace until it finds something that is not whitespace. Then, if it was on a different line from where it started, it will leave that line's line break behind and consume the rest. If there was trailing whitespace in that line, it will be kept too.
If the trimmer is on the right, it will seek whitespace until it finds something that is not whitespace. Then, if it was on a different line from where it started, it will leave that line's whitespace behind and consume the rest.
line 1
{{# "line 2"}}
line 3
=>
line 1
line 2
line 3
line 1
{{"line 2" #}}
line 3
=>
line 1
line 2 line 3
{{- define "one" -}} I {{.}} {{- end -}}
{{- $tmpl := "one" -}}
{{template $tmpl "u"}}
=>
I u
define
and template
define
-> def
template
-> t
{{- def "one" -}} I {{.}} {{- end -}}
{{- $tmpl := "one" -}}
{{t $tmpl "u"}}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.