Skip to content

Commit

Permalink
Generate static html
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasRu committed Aug 8, 2023
1 parent 1747113 commit 75e58e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta name="theme-color" content="&#x23;017f8e"><meta name="description" content="HtmlHelper.cfc: minifyHtml() to get rid of CFML generated whitespace, or use encodeTrustedHtml() to encode HTML of a trusted source that has unencoded characters in inner Html"><meta name="robots" content="index,follow"><meta itemprop="name" content="minifyHtml() &amp; encodeTrustedHtml() | A basic Html Helper Component for CFML"><meta property="og:url" content="https://www.rhein-berg-digital.de/"><meta property="og:title" content="minifyHtml() &amp; encodeTrustedHtml() | A basic Html Helper Component for CFML"><meta property="og:type" content="website"><meta property="og:site_name" content="A basic Html Helper Component for CFML"><meta property="og:description" content="HtmlHelper.cfc: minifyHtml() to get rid of CFML generated whitespace, or use encodeTrustedHtml() to encode HTML of a trusted source that has unencoded characters in inner Html"><title>HtmlHelper.cfc&#x3a; minifyHtml&#x28;&#x29; &amp; encodeTrustedHtml&#x28;&#x29; in your CFML Projects</title><style>html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} </style><link rel="stylesheet" href="/libs/normalizecss/normalize.min.css"><link rel="stylesheet" href="/libs/highlightjs/highlightjs_styles_default.min.css"><link rel="stylesheet" href="/libs/highlightjs/highlightjs_atom-one-dark.min.css"><style> html{ min-height:100%; margin:2px; } body{ color: #fafafa; font-family: 'Open Sans', sans-serif; font-family: 'Open Sans Light', sans-serif; font-family: 'Open Sans Condensed', sans-serif; background: linear-gradient(92deg, #002e34 10%, #333636 76%); font-size: 1rem; max-width: 992px; margin: auto; } h1 { font-weight: 600; font-size: 1.4rem; margin: 1rem; } h2 { color: #96dce4; font-weight: 600; font-size: 1rem; margin: 1rem; } h3 { color: #00fcc9; margin-top: 5rem; font-size: 1rem; margin: 1rem; } h4 { color: #c9d3d5; margin-top: 1rem; margin: 1rem; } h5 { color: #00fcc9; margin-bottom: 0; font-weight:300; font-size: 1.2rem; margin: 1rem; } h2, h3, h5 { margin-top:3rem; } img{ width: 100%; max-width: 500px; } a, a:visited { color: #18efc9; font-family: system-ui; font-weight: 300; } a:hover, a:focus, a:active { color: #18efc9; } p{ margin-left: 1rem; margin-right: 1rem; } blockquote { display: block; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 10px; margin-inline-end: 10px; } ul { display: block; list-style-type: disc; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; padding-inline-start: 25px; } .hljs-punctuation, .hljs-tag { color: #8fc0c5; } .hljs-tag .hljs-name { color: #ea6f6f; } .hljs-tag .hljs-attr { color: #ccb85e; } .hljs-tag .hljs-string { color: #9fcbcd; } .hljs-symbol, .hljs-title { color: #61aeee; } .hljs, pre, code { background: #001146; font-size:0.7rem; } pre { max-height: 18rem; overflow: auto; overflow-y: auto; overflow-x: auto; padding: 0; } pre code.hljs { overflow: visible; padding: 1.3rem; } pre code.hljs { background: #001146; background: linear-gradient(92deg, #0b081e 50%, #190836 76%); color: #2f6991; color: #ffffff; font-weight: 300; } li code.language-html, p code.language-html { background: #777474; color: #00fcc9; font-weight: 400; padding: 0 0.3rem; margin-right: 0.3rem; border-radius: 0.3rem; } #forkongithub a { background: #000; color: #fff; text-decoration: none; font-family: arial, sans-serif; text-align: center; font-weight: bold; padding: 5px 40px; font-size: 0.6rem; line-height: 1rem; position: relative; transition: 0.5s; } #forkongithub a:hover { background: #56837b; color: #fff; } #forkongithub a::before, #forkongithub a::after { content: ""; width: 100%; display: block; position: absolute; top: 1px; left: 0; height: 1px; background: #fff; } #forkongithub a::after { bottom: 1px; top: auto; } #forkongithub { position: fixed; display: block; top: 0; right: 0; width: 200px; overflow: hidden; height: 200px; z-index: 9999; } #forkongithub a { width: 100px; position: absolute; top: 30px; right: -50px; transform: rotate(45deg); -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); } @media only screen and (min-width: 768px) { h1 { font-size: 2.5rem; margin-top:3rem; } #forkongithub a { width: 150px; font-size: 1rem; top: 50px; } } @font-face{font-family:open sans;font-style:normal;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Regular.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Regular.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Italic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:300;src:local('Open Sans'),url(./fonts/OpenSans-Light.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:300;src:local('Open Sans'),url(./fonts/OpenSans-LightItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:600;src:local('Open Sans'),url(./fonts/OpenSans-SemiBold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:600;src:local('Open Sans'),url(./fonts/OpenSans-SemiBoldItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:700;src:local('Open Sans'),url(./fonts/OpenSans-Bold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:700;src:local('Open Sans'),url(./fonts/OpenSans-BoldItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:800;src:local('Open Sans'),url(./fonts/OpenSans-ExtraBold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:800;src:local('Open Sans'),url(./fonts/OpenSans-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:open sans light;font-style:normal;font-weight:300;src:local('Open Sans Light'),url(./fonts/OpenSans-Light-webfont.woff) format('woff')} </style></head><body><span id="forkongithub"><a href="https://github.com/andreasRu/cfml-htmlhelper"> Fork me on GitHub</a></span><h1>HtmlHelper.cfc</h1><hr /><p><strong><em>Minify your CFML generated HTML at runtime&#x21;</em></strong> &#x28;If you want to see an enhanced version of this page, please visit <a href="https://andreasru.github.io/cfml-htmlhelper/">https&#x3a;&#x2f;&#x2f;andreasru.github.io&#x2f;cfml-htmlhelper&#x2f;</a>&#x29;</p><h2>A simple basic CFML component to</h2><blockquote><ul><li><strong>minify CFML generated html</strong> content</li><li><strong>encode trusted HTML</strong> content containing non-compliant&#x2f;unescaped characters like e.g. &euro;, &uuml;, &ouml;, &szlig;, etc. within a tags inner HTML</li></ul></blockquote><h3>1. minifyHtml&#x28; string html required &#x29;</h3><h4>Converts a whitespace poluted HTML block like this</h4><pre><code> &lt;!DOCTYPE html&gt;
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta name="theme-color" content="&#x23;017f8e"><meta name="description" content="HtmlHelper.cfc: minifyHtml() to get rid of CFML generated whitespace, or use encodeTrustedHtml() to encode HTML of a trusted source that has unencoded characters in inner Html"><meta name="robots" content="index,follow"><meta itemprop="name" content="minifyHtml() &amp; encodeTrustedHtml() | A basic Html Helper Component for CFML"><meta property="og:url" content="https://www.rhein-berg-digital.de/"><meta property="og:title" content="minifyHtml() &amp; encodeTrustedHtml() | A basic Html Helper Component for CFML"><meta property="og:type" content="website"><meta property="og:site_name" content="A basic Html Helper Component for CFML"><meta property="og:description" content="HtmlHelper.cfc: minifyHtml() to get rid of CFML generated whitespace, or use encodeTrustedHtml() to encode HTML of a trusted source that has unencoded characters in inner Html"><title>HtmlHelper.cfc&#x3a; minifyHtml&#x28;&#x29; &amp; encodeTrustedHtml&#x28;&#x29; in your CFML Projects</title><style>html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} </style><link rel="stylesheet" href="/libs/normalizecss/normalize.min.css"><link rel="stylesheet" href="/libs/highlightjs/highlightjs_styles_default.min.css"><link rel="stylesheet" href="/libs/highlightjs/highlightjs_atom-one-dark.min.css"><style> html{ min-height:100%; margin:2px; } body{ color: #fafafa; font-family: 'Open Sans', sans-serif; font-family: 'Open Sans Light', sans-serif; font-family: 'Open Sans Condensed', sans-serif; background: linear-gradient(92deg, #002e34 10%, #333636 76%); font-size: 1rem; max-width: 992px; margin: auto; } h1 { font-weight: 600; font-size: 1.4rem; margin: 1rem; } h2 { color: #96dce4; font-weight: 600; font-size: 1rem; margin: 1rem; } h3 { color: #00fcc9; margin-top: 5rem; font-size: 1rem; margin: 1rem; } h4 { color: #c9d3d5; margin-top: 1rem; margin: 1rem; } h5 { color: #00fcc9; margin-bottom: 0; font-weight:300; font-size: 1.2rem; margin: 1rem; } h2, h3, h5 { margin-top:3rem; } img{ width: 100%; max-width: 500px; } a, a:visited { color: #18efc9; font-family: system-ui; font-weight: 300; } a:hover, a:focus, a:active { color: #18efc9; } p{ margin-left: 1rem; margin-right: 1rem; } blockquote { display: block; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 10px; margin-inline-end: 10px; } ul { display: block; list-style-type: disc; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; padding-inline-start: 25px; } .hljs-punctuation, .hljs-tag { color: #8fc0c5; } .hljs-tag .hljs-name { color: #ea6f6f; } .hljs-tag .hljs-attr { color: #ccb85e; } .hljs-tag .hljs-string { color: #9fcbcd; } .hljs-symbol, .hljs-title { color: #61aeee; } .hljs, pre, code { background: #001146; font-size:0.7rem; } pre { max-height: 18rem; overflow: auto; overflow-y: auto; overflow-x: auto; padding: 0; } pre code.hljs { overflow: visible; padding: 1.3rem; } pre code.hljs { background: #001146; background: linear-gradient(92deg, #0b081e 50%, #190836 76%); color: #2f6991; color: #ffffff; font-weight: 300; } li code.language-html, p code.language-html { background: #777474; color: #00fcc9; font-weight: 400; padding: 0 0.3rem; margin-right: 0.3rem; border-radius: 0.3rem; } #forkongithub a { background: #000; color: #fff; text-decoration: none; font-family: arial, sans-serif; text-align: center; font-weight: bold; padding: 5px 40px; font-size: 0.6rem; line-height: 1rem; position: relative; transition: 0.5s; } #forkongithub a:hover { background: #56837b; color: #fff; } #forkongithub a::before, #forkongithub a::after { content: ""; width: 100%; display: block; position: absolute; top: 1px; left: 0; height: 1px; background: #fff; } #forkongithub a::after { bottom: 1px; top: auto; } #forkongithub { position: fixed; display: block; top: 0; right: 0; width: 200px; overflow: hidden; height: 200px; z-index: 9999; } #forkongithub a { width: 100px; position: absolute; top: 30px; right: -50px; transform: rotate(45deg); -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); } @media only screen and (min-width: 768px) { h1 { font-size: 2.5rem; margin-top:3rem; } #forkongithub a { width: 150px; font-size: 1rem; top: 50px; } } @font-face{font-family:open sans;font-style:normal;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Regular.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Regular.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:400;src:local('Open Sans'),url(./fonts/OpenSans-Italic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:300;src:local('Open Sans'),url(./fonts/OpenSans-Light.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:300;src:local('Open Sans'),url(./fonts/OpenSans-LightItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:600;src:local('Open Sans'),url(./fonts/OpenSans-SemiBold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:600;src:local('Open Sans'),url(./fonts/OpenSans-SemiBoldItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:700;src:local('Open Sans'),url(./fonts/OpenSans-Bold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:700;src:local('Open Sans'),url(./fonts/OpenSans-BoldItalic.woff) format('woff')}@font-face{font-family:open sans;font-style:normal;font-weight:800;src:local('Open Sans'),url(./fonts/OpenSans-ExtraBold.woff) format('woff')}@font-face{font-family:open sans;font-style:italic;font-weight:800;src:local('Open Sans'),url(./fonts/OpenSans-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:open sans light;font-style:normal;font-weight:300;src:local('Open Sans Light'),url(./fonts/OpenSans-Light-webfont.woff) format('woff')} </style></head><body><span id="forkongithub"><a href="https://github.com/andreasRu/cfml-htmlhelper"> Fork me on GitHub</a></span><h1>HtmlHelper.cfc</h1><hr /><p><strong><em>Minify your CFML generated HTML at runtime&#x21;</em></strong></p><p>&#x28;If you want to see an enhanced version of this page, please visit <a href="https://andreasru.github.io/cfml-htmlhelper/">https&#x3a;&#x2f;&#x2f;andreasru.github.io&#x2f;cfml-htmlhelper&#x2f;</a>&#x29;</p><h2>A simple basic CFML component to</h2><blockquote><ul><li><strong>minify CFML generated html</strong> content</li><li><strong>encode trusted HTML</strong> content containing non-compliant&#x2f;unescaped characters like e.g. &euro;, &uuml;, &ouml;, &szlig;, etc. within a tags inner HTML</li></ul></blockquote><h3>1. minifyHtml&#x28; string html required &#x29;</h3><h4>Converts a whitespace poluted HTML block like this</h4><pre><code> &lt;!DOCTYPE html&gt;
&lt;head&gt;
&lt;title&gt;Hot CFML Page &amp; content&lt;/title&gt;
&lt;meta charset="utf-8"&gt;
Expand Down

0 comments on commit 75e58e6

Please sign in to comment.