-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#30 use loaded js notebook content for js save
also added simple hello-world.js to notebook samples for source code view and testing (#28)
- Loading branch information
1 parent
56ffb14
commit 6dbe7b2
Showing
2 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// URL: https://observablehq.com/@tmcw/hello-world | ||
// Title: Hello ${name} | ||
// Author: Tom MacWright (@tmcw) | ||
// Version: 7 | ||
// Runtime version: 1 | ||
|
||
const m0 = { | ||
id: "6759b582dec65059@7", | ||
variables: [ | ||
{ | ||
name: "hello", | ||
inputs: ["md","name"], | ||
value: (function(md,name){return( | ||
md`# Hello ${name}` | ||
)}) | ||
}, | ||
{ | ||
name: "name", | ||
value: (function(){return( | ||
'world' | ||
)}) | ||
} | ||
] | ||
}; | ||
|
||
const notebook = { | ||
id: "6759b582dec65059@7", | ||
modules: [m0] | ||
}; | ||
|
||
export default notebook; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters