Skip to content

Commit 17ae72c

Browse files
save file
1 parent 26f1958 commit 17ae72c

1 file changed

Lines changed: 139 additions & 0 deletions

File tree

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
2+
3+
<!-- headers
4+
cross-origin-isolate
5+
-->
6+
7+
8+
<!DOCTYPE html>
9+
10+
<html lang=en>
11+
12+
<head>
13+
<meta charset=utf-8>
14+
15+
<title>
16+
Request URL to Absolute Filename
17+
</title>
18+
19+
<meta name=description content=''>
20+
21+
<base href='https://ext-code.com/blog/26-04-16/node-gyp-always-on-top/node-gyp-always-on-top.html'>
22+
<link rel=canonical href='https://ext-code.com/blog/25-02-05/request-url-to-absolute-filename/request-url-to-absolute-filename.html'>
23+
24+
<link rel=icon href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAABLFBMVEVHcEwopnMfpm8epm4epm4hpm81pHgfpm8ipnAhpm8ipnAfpm8gpm8jpnAsquAqpXQhpnAjpnEspXQhpnDr3Mgtqt8epm8fpm8kpnEgpm8rpXPr6OkqquAqquEjpnF/xagnqHTr6OlUtY7m5ubm5ub/9//m5uYbpWyXzLZ1s4UPnmRbqrkdpm7m5ubp5+gbpm0bpWwsq3fC29GXzbaMyrEwrOFHtIYnquHb4+Cz1uUkp3LT4ebi5ejwhhL3jhj7mSO72eXkhB12w+T4pDd8xafF3NKfijLWsrDc3diHlIzyr07et4jq07fqmkfhqFfyv3dauuJnveE2rn1AnFltkULIx8dQomPMfxXvjbNuo4xylYXu0KZqr7fOwrFaueL9yoTI1MatqHQwqtqDrqPS97zrAAAALHRSTlMAHtX5958F0l+Pfe2lXa4QgGAPjf6b8fBbzw9Y0L1h6t3NR9HhDPzLh/QusFA6UqkAAAGESURBVCjPdZNnW8IwEIDTtKVQKHsj7u21RUVREBFQ2SjuPf//fzBt0gFPfT+0z9M3vVwudwhZcLEQzvB8Bof8HJqFi2IeGLwkTy/w+TFMgRWfYyMBAfSShW54IZG3bFwEqJ6XLRYWzQBinEUOAOi7F5rF0rJErA4JGl8RDL2nqYyVte2Nau+lKmTNnI2s3Hq1UNjc6jz1ABv5yzCj1XU12R93nnWQyc+SrdneZMFVo35ZBZA4pPCWrh1Tatpr+/Tx1qhPFonAtNo6oLSS/Ubzjh4OSZY+ua5QJkbokvk5h4IuPZcqhsPF3/Zp88EsHQQRb+sPosOp8M64UR8c0r8FR9O9Kz/fjfqoa2s7uFY7I0zeSOjhEdNBJzV67trX52igWTrnHIxV7X2YVG0tuspC9X2XPJgmZXEV1cR8MU2K6nEltpadC3XagUC1eaHIT9qBNNO+i/INqZqg2M3kBWsmFBG9rJh3GpmflUIi7hqD2OwY+H3/DxGOekzZfAinAdI4FHPkH67FfQ17kRvyAAAAAElFTkSuQmCC'>
25+
<meta name=viewport content='width=device-width, initial-scale=1'>
26+
27+
<script type='application/ld+json'>
28+
{
29+
"@context" : "https://schema.org",
30+
"@type" : "TechArticle",
31+
"headline" : "",
32+
"description" : "",
33+
"author" : {"@type":"Person","name":"Matthew Richards"},
34+
"datePublished" : "2025-10-17",
35+
"dateModified" : "2025-10-29",
36+
"mainEntityOfPage" : {"@type":"WebPage","@id":"https://ext-code.com/blog/25-02-05/request-url-to-absolute-filename/request-url-to-absolute-filename.html"},
37+
"publisher" : {"@type":"Organization","name":"ext-code.com","logo":{"@type":"ImageObject","url":"https://ext-code.com/favicon.ico"}},
38+
}
39+
</script>
40+
41+
42+
<script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script>
43+
44+
45+
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js?hdr'></script>
46+
47+
<script>
48+
console.log('request-url-to-absolute-filename.html');
49+
var editor;
50+
var snippet;
51+
52+
53+
async function ready(){
54+
debug('ready',window.crossOriginIsolated);
55+
editor = mod['web-editor'];
56+
snippet = mod['snippet-terminal-console'];
57+
58+
initdom(document.body);
59+
60+
}//init
61+
62+
63+
</script>
64+
65+
66+
67+
<link rel=stylesheet href='../../css/blog.css'>
68+
69+
<style>
70+
</style>
71+
72+
</head>
73+
74+
75+
<body>
76+
77+
78+
<blog-hdr v2.0 component=grp1>
79+
<h1 slot=title>
80+
Request URL to Absolute Filename
81+
</h1>
82+
<time slot=date datetime=2026-02-18>
83+
18 Feb 2026
84+
</time>
85+
</blog-hdr>
86+
87+
88+
<div class=description>
89+
<p>
90+
This blog post aims to produce a function that will take a request url and make sure it maps
91+
into the document root of the server.
92+
</p>
93+
</div>
94+
95+
<web-editor component src='ex/resolve.js' fullsize></web-editor>
96+
97+
<snippet-terminal-console component src='ex/test.js' mode=nodejs web-terminal='h=450px'></snippet-terminal-console>
98+
99+
100+
<log-mod component></log-mod>
101+
102+
103+
</body>
104+
105+
106+
<script>
107+
108+
109+
var btn = {};
110+
111+
112+
function initdom(rootnode){
113+
114+
snippet.btn.run = btn.run;
115+
116+
}//initdom
117+
118+
119+
btn.run = function(){
120+
121+
var js1 = editor.getvalue();
122+
var js2 = snippet.editor.getvalue();
123+
var js = js1+'\n\n'+js2;
124+
return js;
125+
126+
}//run
127+
128+
129+
130+
</script>
131+
132+
</html>
133+
134+
135+
136+
137+
138+
139+

0 commit comments

Comments
 (0)