Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

razorleaf

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorleaf - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

package.json
{
"name": "razorleaf",
"version": "2.0.0",
"version": "2.0.1",
"main": "razorleaf.js",

@@ -16,6 +16,6 @@ "files": [

"type": "git",
"url": "https://github.com/charmander/razorleaf"
"url": "https://charmander.me/git/razorleaf"
},
"bugs": {
"url": "https://github.com/charmander/razorleaf/issues"
"email": "campersander@gmail.com"
},

@@ -22,0 +22,0 @@ "homepage": "https://charmander.me/razorleaf/",

@@ -15,20 +15,16 @@ ![Status]

```
p
```
p
```html
<p></p>
```
<!-- -->
<p></p>
Void elements are recognized automatically.
```
meta
```
meta
```html
<meta>
```
<!-- -->
<meta>
### Strings

@@ -40,33 +36,27 @@

```
"--> A string <--\n" "A string containing \"double-quotes\""
```
"--> A string <--\n" "A string containing \"double-quotes\""
```html
--&gt; A string &lt;--
A string containing "double-quotes"
```
<!-- -->
--&gt; A string &lt;--
A string containing "double-quotes"
Strings can also contain interpolated sections, delimited by `#{` and `}`.
`#{` can be escaped with a leading backslash; `}` doesn’t require escaping.
```
"#{6 * 7}"
```
"#{6 * 7}"
```html
42
```
<!-- -->
42
If an exclamation mark precedes the string, it and any of its interpolated
sections will not be escaped.
```
!"<!-- A significant comment -->"
```
!"<!-- A significant comment -->"
```html
<!-- A significant comment -->
```
<!-- -->
<!-- A significant comment -->
### Attributes

@@ -80,10 +70,8 @@

```
meta charset: "utf-8"
```
meta charset: "utf-8"
```html
<meta charset="utf-8">
```
<!-- -->
<meta charset="utf-8">
### Hierarchy

@@ -93,25 +81,21 @@

```
html
head
meta charset: "utf-8"
html
head
meta charset: "utf-8"
title "Example"
title "Example"
link
rel: "stylesheet"
type: "text/css"
href: "stylesheets/example.css"
link
rel: "stylesheet"
type: "text/css"
href: "stylesheets/example.css"
body
p id: "introduction"
"This template is a brief example of hierarchy."
```
body
p id: "introduction"
"This template is a brief example of hierarchy."
```html
<html><head><meta charset="utf-8"><title>Example</title><link rel="stylesheet"
type="text/css" href="stylesheets/example.css"></head><body><p
id="introduction">This template is a brief example of hierarchy.</p></body></html>
```
<!-- -->
<html><head><meta charset="utf-8"><title>Example</title><link rel="stylesheet" type="text/css" href="stylesheets/example.css"></head><body><p id="introduction">This template is a brief example of hierarchy.</p></body></html>
Content found after an element on the same line will also be considered that

@@ -134,14 +118,10 @@ element’s content.

```
% if (i < 5)
!"#{i}"
```
% if (i < 5)
!"#{i}"
might compile to this JavaScript:
```javascript
if (i < 5) {
output += i;
}
```
if (i < 5) {
output += i;
}

@@ -148,0 +128,0 @@ ### Special blocks

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc