summaryrefslogtreecommitdiff
path: root/docs/modules/html-backend/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modules/html-backend/examples')
-rw-r--r--docs/modules/html-backend/examples/mysample-data-uri.adoc17
-rw-r--r--docs/modules/html-backend/examples/mysample-link.adoc13
-rw-r--r--docs/modules/html-backend/examples/mysample-stylesdir-link.adoc15
-rw-r--r--docs/modules/html-backend/examples/mysample-stylesdir.adoc14
-rw-r--r--docs/modules/html-backend/examples/mysample-stylesheet.adoc13
-rw-r--r--docs/modules/html-backend/examples/mysample.adoc12
-rw-r--r--docs/modules/html-backend/examples/wrap.adoc17
7 files changed, 101 insertions, 0 deletions
diff --git a/docs/modules/html-backend/examples/mysample-data-uri.adoc b/docs/modules/html-backend/examples/mysample-data-uri.adoc
new file mode 100644
index 00000000..ec32d03e
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample-data-uri.adoc
@@ -0,0 +1,17 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+:imagesdir: myimages
+:data-uri:
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+[.left.text-center]
+image::wolpertinger.jpg[Wolpertinger]
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/mysample-link.adoc b/docs/modules/html-backend/examples/mysample-link.adoc
new file mode 100644
index 00000000..e24aeea9
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample-link.adoc
@@ -0,0 +1,13 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+:linkcss:
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/mysample-stylesdir-link.adoc b/docs/modules/html-backend/examples/mysample-stylesdir-link.adoc
new file mode 100644
index 00000000..bb56b9e2
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample-stylesdir-link.adoc
@@ -0,0 +1,15 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+:stylesdir: mystylesheets/
+:stylesheet: mystyles.css
+:linkcss:
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/mysample-stylesdir.adoc b/docs/modules/html-backend/examples/mysample-stylesdir.adoc
new file mode 100644
index 00000000..452e7f5c
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample-stylesdir.adoc
@@ -0,0 +1,14 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+:stylesdir: mystylesheets/
+:stylesheet: mystyles.css
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/mysample-stylesheet.adoc b/docs/modules/html-backend/examples/mysample-stylesheet.adoc
new file mode 100644
index 00000000..b1cc475c
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample-stylesheet.adoc
@@ -0,0 +1,13 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+:stylesheet: mystyles.css
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/mysample.adoc b/docs/modules/html-backend/examples/mysample.adoc
new file mode 100644
index 00000000..0a00ca64
--- /dev/null
+++ b/docs/modules/html-backend/examples/mysample.adoc
@@ -0,0 +1,12 @@
+= My First Experience with the Dangers of Documentation
+:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger
+
+In my world, we don't have to worry about mutant, script-injecting warlocks.
+No.
+We have something far worse.
+We're plagued by Wolpertingers.
+
+== Origins
+
+You may not be familiar with these {url-wolpertinger}[ravenous beasts],
+but, trust me, they'll eat your shorts and suck the loops from your code.
diff --git a/docs/modules/html-backend/examples/wrap.adoc b/docs/modules/html-backend/examples/wrap.adoc
new file mode 100644
index 00000000..3f877d7d
--- /dev/null
+++ b/docs/modules/html-backend/examples/wrap.adoc
@@ -0,0 +1,17 @@
+// tag::nowrap[]
+[source%nowrap,java]
+----
+public class ApplicationConfigurationProvider extends HttpConfigurationProvider
+{
+ @Override
+ public Configuration getConfiguration(ServletContext context)
+ {
+ return ConfigurationBuilder.begin()
+ .addRule()
+ .when(Direction.isInbound().and(Path.matches("/{path}")))
+ .perform(Log.message(Level.INFO, "Client requested path: {path}"))
+ .where("path").matches(".*");
+ }
+}
+----
+// end::nowrap[]