Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Advice or examples for declarative HTML in character sheets

I've been working on a project for awhile where characters are primarily built up from a collection of modular "Character Features". Each of these tends to have at least 1 or 2 options or resources specific to it that need to be tracked. I wrote the original character creator app for it in React which let me write all that conditional HTML in JSX to create an accordion with each of the Character Features as a collapse. I'm trying to implement it as a Roll20 sheet now. Does anyone know of any existing character sheets that implement design like this without a framework? Or any resources that might help me figure out how to set this up?
1672130817
GiGs
Pro
Sheet Author
API Scripter
I don;t know of anything like that. Roll20 doesn't natively support any framework, you'd need some way to translate your sheet into "normal" html for it to be used on roll20.
1672147986
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The best I can suggest is using PUG (an html templating language). I believe there's also a way to write jsx that templates html without using full react. There are several examples of pug based sheets on the repo including the official backbone system sheet and the official warbirds sheet (both by me).
Scott C. said: The best I can suggest is using PUG (an html templating language). I believe there's also a way to write jsx that templates html without using full react. There are several examples of pug based sheets on the repo including the official backbone system sheet and the official warbirds sheet (both by me). Yeah that sounds like the kind of thing I'm looking for. Could you please link the repos for those sheets for me? I can't find them on the wiki.
<a href="https://github.com/Roll20/roll20-character-sheets" rel="nofollow">https://github.com/Roll20/roll20-character-sheets</a>
1672446828

Edited 1672458994
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Specifically: <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/backbone" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/backbone</a> <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/rapidfire_system" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/rapidfire_system</a> I had meant the rapid fire system sheet for remnants when I said warbirds. The warbirds sheet isn't finished yet.