Comparing version 2.0.0 to 2.0.1
{ | ||
"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/", |
108
readme.md
@@ -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 | ||
--> A string <-- | ||
A string containing "double-quotes" | ||
``` | ||
<!-- --> | ||
--> A string <-- | ||
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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
968539
2
3
163