26 lines
473 B
Awk
26 lines
473 B
Awk
REQUEST_PATH ~ /^\/test/ {
|
|
response_reset();
|
|
|
|
h1( "Test path" );
|
|
println( "^/test matched" );
|
|
pre( REQUEST_URL );
|
|
link( "/", "Back to home" );
|
|
|
|
response_ok();
|
|
}
|
|
|
|
REQUEST_PATH == "/" {
|
|
response_reset();
|
|
|
|
h1( "Hello World from Awk!" );
|
|
println( "This is a test." );
|
|
pre( REQUEST_URL );
|
|
link( "/test123", "A test page" );
|
|
|
|
println( "Updated " \
|
|
exec_to_string( "date --iso-8601=seconds" ) \
|
|
);
|
|
|
|
response_ok();
|
|
}
|