srb2kart-skin-lister
v0.3.0
Published
Generates a list with images of available skins from an SRB2Kart folder
Downloads
6
Readme
Generates a list of skins based on your folder of SRB2Kart addons
Example usage
$ ls
PLAYPAL.pal
# this needs to be in this folder
# you can extract it from srb2.srb using SLADE
$ srb2kart-skin-lister ~/srb2kart/addons/ > index.html
# note that pngs will be thrown into the current folder
Style it
$ srb2kart-skin-lister ~/srb2kart/addons/ < template.html > index.html
That is, if you put something in on stdin it will be used as a template for the output.
It uses Handlebars as a templating engine. You can go read the documentation there on how to use it.
There are two helpers that have been registered:
lower
makes the text lowercasespacify
replaces all underscores with spaces
If you want a reference to look at, open the index.ts file and look at template_str.