mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Rename samples subdirectories
This commit is contained in:
9
samples/Opa/hello_syntax1.opa
Normal file
9
samples/Opa/hello_syntax1.opa
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* To compile & run on port 8080:
|
||||
* opa hello_syntax1.opa --
|
||||
*/
|
||||
server = Server.one_page_server(
|
||||
"Hello, world",
|
||||
-> (<h1>Hello, world</h1>)
|
||||
)
|
||||
|
||||
11
samples/Opa/hello_syntax2.opa
Normal file
11
samples/Opa/hello_syntax2.opa
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* To compile & run on port 8080:
|
||||
* opa --parser js-like hello_syntax2.opa --
|
||||
*/
|
||||
Server.start(
|
||||
Server.http,
|
||||
{
|
||||
page: function() { <h1>Hello, world</h1> },
|
||||
title: "Hello, world"
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user