added ls prints to some pages and index pages for subfolders

This commit is contained in:
Aviv "RustyStriker" Romem 2022-06-11 15:28:45 +03:00
parent c108f98432
commit f102c9f48c
5 changed files with 47 additions and 3 deletions

20
bscripts/index.html Normal file
View file

@ -0,0 +1,20 @@
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Build Scripts/"</INJECT>
<h1>Build Scripts</h1>
<div>
<p>
Folder keeping build script helpers(for running using my injector).
<br>
For example: a python script
(yes i know i hate python but its v quick for simple stuff)
to transform input from <code>ls</code> into a list of &lt;a&gt; tags(with space between)
</p>
<p>
here is the list of files here:
<br>
<INJECT>cd $CURRENT && ls *.* | python3 $HOME/bscripts/ls_to_a.py</INJECT>
</p>
</div>
<INJECT>cat $HOME/template/footer.html</INJECT>

View file

@ -5,5 +5,5 @@ while True:
try:
a = input()
except:
break;
print('<a href=\'' + a + '\'>' + a + '</a>')
break
print('<a href=\'' + a + '\'>' + a.replace('.html', '') + '</a><t>')