@benev/turtle
Advanced tools
Comparing version 0.3.7 to 0.4.0
{ | ||
"name": "@benev/turtle", | ||
"version": "0.3.7", | ||
"version": "0.4.0", | ||
"description": "static site generator", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"scripts": { | ||
"build": "run-s clean compile permissions", | ||
"build": "run-s clean compile permissions demo", | ||
"clean": "rm -rf x && mkdir x", | ||
@@ -28,0 +28,0 @@ "compile": "tsc", |
@@ -78,14 +78,14 @@ | ||
export default template(async({path}, x: number) => html` | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>@benev/turtle - stamp test</title> | ||
<link rel="stylesheet" href="${path(url).version.root('style.css')}"/> | ||
</head> | ||
<body> | ||
<h1>@benev/turtle - stamp test</h1> | ||
<p>${x}</p> | ||
</body> | ||
</html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>@benev/turtle - stamp test</title> | ||
<link rel="stylesheet" href="${path(url).version.root('style.css')}"/> | ||
</head> | ||
<body> | ||
<h1>@benev/turtle - stamp test</h1> | ||
<p>${x}</p> | ||
</body> | ||
</html> | ||
`) | ||
@@ -116,19 +116,19 @@ ``` | ||
// loop over each value | ||
await Promise.all(values.map(async(x) => { | ||
// loop over each value | ||
await Promise.all(values.map(async(x) => { | ||
// write a webpage | ||
await write_webpage({ | ||
// write a webpage | ||
await write_webpage({ | ||
// provide the page template | ||
template: page, | ||
// provide the page template | ||
template: page, | ||
// provide the x value in the context | ||
context: x, | ||
// provide the x value in the context | ||
context: x, | ||
// specify the destination relative | ||
// to this build script | ||
destination: `${x}.html`, | ||
}) | ||
})) | ||
// specify the destination relative | ||
// to this build script | ||
destination: `${x}.html`, | ||
}) | ||
})) | ||
}) | ||
@@ -135,0 +135,0 @@ ``` |
@@ -22,3 +22,3 @@ | ||
export * from "./patterns/easypage.js" | ||
export * from "./patterns/startup_scripts_with_debug_mode.js" | ||
export * from "./patterns/startup_scripts_with_dev_mode.js" | ||
@@ -25,0 +25,0 @@ export * from "./utils/hashing/apply_file_hash_to_url.js" |
@@ -17,3 +17,3 @@ export * from "./build/parts/path/path_router.js"; | ||
export * from "./patterns/easypage.js"; | ||
export * from "./patterns/startup_scripts_with_debug_mode.js"; | ||
export * from "./patterns/startup_scripts_with_dev_mode.js"; | ||
export * from "./utils/hashing/apply_file_hash_to_url.js"; | ||
@@ -20,0 +20,0 @@ export * from "./utils/hashing/compute_hash_for_file.js"; |
@@ -17,3 +17,3 @@ export * from "./build/parts/path/path_router.js"; | ||
export * from "./patterns/easypage.js"; | ||
export * from "./patterns/startup_scripts_with_debug_mode.js"; | ||
export * from "./patterns/startup_scripts_with_dev_mode.js"; | ||
export * from "./utils/hashing/apply_file_hash_to_url.js"; | ||
@@ -20,0 +20,0 @@ export * from "./utils/hashing/compute_hash_for_file.js"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126771
2258