You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2019/07/25 16:06:14 UTC
[sling-whiteboard] 02/02: Style tweaks for obvious demo
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit bc456a2e05d440fcfab3ec5f39916e97f214e365
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jul 25 18:05:47 2019 +0200
Style tweaks for obvious demo
---
serverless-microsling/rendering-actions/somedoc-html.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/serverless-microsling/rendering-actions/somedoc-html.js b/serverless-microsling/rendering-actions/somedoc-html.js
index 831e00f..d3c52a4 100644
--- a/serverless-microsling/rendering-actions/somedoc-html.js
+++ b/serverless-microsling/rendering-actions/somedoc-html.js
@@ -21,10 +21,18 @@ function main (params) {
const markup = `<html>
<head>
<title>${resource.title}</title>
+ <style type="text/css">
+ body {
+ background-color: #fcf3cf;
+ }
+ h1 {
+ color: blue;
+ }
+ </style>
</head>
<body>
<h1>
- ${resource.title}
+ ${resource.title}, with a custom rendering!
</h1>
<div>${resource.body}</div>
<div><em>This is the somedoc-html rendering</em></div>