This file contains hidden or 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
declare function local:xdm-type($value as item()?) as xs:QName? { | |
typeswitch($value) | |
case array(*) return xs:QName("array") | |
case map(*) return xs:QName("map") | |
case function(*) return xs:QName("function") | |
case document-node() return xs:QName("document") | |
case element() return xs:QName("element") | |
case attribute() return xs:QName("attribute") | |
case comment() return xs:QName("comment") | |
case processing-instruction() return xs:QName("processing-instruction") |
This file contains hidden or 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
NAME=newBase60 | |
CONTAINER=exDev | |
PORT=8282 | |
USE_DC_OVERRIDE=yes | |
DC_OVERRIDE_NETWORK=www |
This file contains hidden or 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
use Test::Nginx::Socket 'no_plan'; | |
log_level('debug'); # to ensure any log-level can be outputted | |
#no_diff(); | |
no_long_string(); | |
run_tests(); | |
__DATA__ | |
=== TEST 1: zie.nz | |
--- config |
This file contains hidden or 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
xquery version "3.1"; | |
(:~ main app routes | |
@author Grant MacKenzie | |
@version 0.1 | |
this app is proxied behind openresty/nginx | |
the data for the app is separate from the app | |
------------------------------------------- |
This file contains hidden or 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
<html> | |
<head> | |
<title>home page</title> | |
</head> | |
<body> | |
My home page | |
</body> | |
</html> |
This file contains hidden or 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
xquery version "3.1"; | |
import module namespace xdb="http://exist-db.org/xquery/xmldb"; | |
declare variable $home external; | |
declare variable $dir external; | |
declare variable $target external; | |
declare variable $domain := substring-after( string($target), '/apps/'); | |
declare variable $pages := 'data/' || $domain || '/docs/pages'; | |
declare variable $posts := 'data/' || $domain || '/docs/posts'; | |
declare variable $recycle := 'data/' || $domain || '/docs/recycle'; | |
declare variable $uploads := 'data/' || $domain || '/docs/uploads'; |
This file contains hidden or 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
Makefile | |
.* | |
_content | |
demo.json |
This file contains hidden or 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
xquery version "3.1"; | |
(:~ main app routes | |
@author Grant MacKenzie | |
@version 0.1 | |
this app is proxied behind openresty/nginx | |
the data for the app is separate from the app | |
------------------------------------------- |
This file contains hidden or 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
#!/usr/bin/env node | |
'use strict'; | |
var fs = require('fs'); | |
var encoding = 'utf-8'; | |
var source = '' | |
if (process.argv.length <= 2) { | |
console.log("Usage: " + __filename + " file"); | |
process.exit(-1); | |
} | |
var file = process.argv[2]; |
This file contains hidden or 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
getMimeType = $(shell java -cp $(SAXON) \ | |
net.sf.saxon.Query \ | |
\!method=text \ | |
-qversion:3.1 \ | |
-qs:"doc('file:///$(EXIST_HOME)/mime-types.xml')//mime-type[matches(./extensions,'\$(1),|\$(1)$$')]/@name/string()"\ | |
) |
NewerOlder