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
xquery version "3.0"; | |
(:~ | |
This module contains helper functions for dealing with URLs. | |
When receiving webmention the post parameter 'source' is a URL pointing to the | |
origin of the mention. | |
Before we get and store a sanitized version of an HTML document the url links to | |
we want to able to |
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
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 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
--- | |
ISSUE_DATE=2015-01-14 | |
ISSUE_LABEL="enhancement" | |
ISSUE_TITLE="branch selection from issue" | |
ISSUE_STATE="open" | |
ISSUE_NUMBER=2 | |
--- | |
A one line *summary* of what we hope to resolve. | |
- [x] todo task 1 |
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
NAME=newBase60 | |
CONTAINER=exDev | |
PORT=8282 | |
USE_DC_OVERRIDE=yes | |
DC_OVERRIDE_NETWORK=www |
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
xquery version "3.0"; | |
module namespace trigger = "http://exist-db.org/xquery/trigger"; | |
declare namespace xhtml = "http://www.w3.org/1999/xhtml"; | |
declare namespace atom = "http://www.w3.org/2005/Atom"; | |
declare namespace repo="http://exist-db.org/xquery/repo"; | |
import module namespace system = "http://exist-db.org/xquery/system"; | |
import module namespace util = "http://exist-db.org/xquery/util"; | |
import module namespace xmldb = "http://exist-db.org/xquery/xmldb"; |
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
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 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 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 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 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 |
NewerOlder