
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@dldc/docsy
Advanced tools
A syntax for Component based documents
By default any content is considered as text.
You can use line comments //
or block comments /*
and */
.
Comments also works inside elements !
You can insject value with {}
:
Two plus two is {2 + 2} !
An identifier must start with a letter ([A-Za-z]
) and can contain letters, numbers and _
.
An expression can be:
Strings works like in JavaScript:
Exponent are not supported
true
and false
null
and undefined
are supported
<|Tag>Content<Tag/>
Raw Element content is always treated as text.
<#Tag>Content<Tag/>
Both normal and raw closing tag can omit the tag name:
<|Tag>Content</>
<#Tag>Content</>
</Tag/>
Line element end at the end of the line (or end of file)
<Tag>Content
<|>Content</>
<#>Raw Content</>
Tag name must be a valid identifier or a member access like foo.bar
.
// Normal: open / close
<|Tag>Some content<Tag/>
// Normal: open / close shortcut
<|Tag>Some content</>
// Raw: open / close
<#Tag>Some content<Tag/>
// Raw: open / close shortcut
<#Tag>Some content</>
// Normal: line
<Tag>Hello Test
// Self closig
</Tag/>
// FRAGMENTS
// Normal fragment
<|>Some content</>
// Raw fragment
<#>Some content</>
Any opening / self closing tag can have attributes.
Attributes are sparated by whitespace and are in the form NAME=VALUE
or simply NAME
.
Attribute name can be any valid identifier.
Attribute value can be any expression.
FAQs
A syntax for Component based documents
The npm package @dldc/docsy receives a total of 0 weekly downloads. As such, @dldc/docsy popularity was classified as not popular.
We found that @dldc/docsy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.