garris / garris/TremulaJS

Adding customized HTML to a TremulaJS layout.

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
73
PR merge metrics
No merged PRs in 30d

Description

This is another common question I've gotten on twitter. Here is a quick response...

Look in the gh-pages-demo directory and look at tremulaAdapters.js file.   On line 15, see the template property … that’s the guy you want.  You can add any html there and you can add your own method to that file to process your own data stream with your own properties.  You can arbitrarily add dynamic data by directly injecting (or find and replacing) DOM in your template.   You can see a complex example of this by looking at /src/DataAdatpers.js   see the block starting at line 79 this.template = …

Please post here with specific questions.

GS

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with gh-pages-demo/tremulaAdapters.js at the template property on line 15, then compare the complex example in src/DataAdatpers.js around line 79. Use these examples to clarify how custom HTML and dynamic data are added; done when the documented guidance is understandable and points newcomers to the relevant example.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.