mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-24 08:46:26 -05:00
This commit introduces Tools.html and Tools.plural, helper functions for string construction. Tools.html is a template tag function that escapes HTML inside the template string. Tools.plural is a helper function that takes a passed Number, Array, Set, or Map and returns a string representing whether or not it's plural. It also starts doing some refactors of some files to make it clear how I expect code style for template strings to look. Previously, we used ' for IDs, " for English text, and ' for code. We should now be using ' for IDs, ` for English text, and ` for code. |
||
|---|---|---|
| .. | ||
| COMMANDS.md | ||
| datasearch.js | ||
| hangman.js | ||
| info.js | ||
| jeopardy.js | ||
| mafia-data.js | ||
| mafia.js | ||
| poll.js | ||
| roomsettings.js | ||
| scavengers.js | ||
| tcgtabletop.js | ||
| thehappyplace.js | ||
| thestudio.js | ||
| trivia.js | ||
| wifi.js | ||