Comments (5)
I anticipate that sometimes authors will want a variable insertion to occur dynamically, and other times will want the value captured as at time of declaration.
from homebrewery.
Wasn't this already discussed pretty heavily when designing the specs for variables? I feel like we decided to avoid this exact thing for a specific reason, but I can't recall at the moment.
In any case, something like this would involve basically a full rewrite of the Variables extension. I would put this at low priority for now.
from homebrewery.
Done for two main reasons: 1) to avoid recursion hell, and 2) to facilitate imperative interpreting.
Both are still good reasons.
The functionality suggested by $[TraitMagicResistance][Sally]
shouldn't even involve further varnames. As Gazzok89 suggests, the functional form declaration should be more like [TraitMagicResistance]: The $1 has magic resistance.
.. where the $1
represents to first fed-in parameter. This way each parameter can be re-used in the same template too, like $1 and $2 were sitting in a tree. $1 was hopeful, $2 not so much. $3 observed from a distance.
. (The syntax suggested here is only a placeholder).
Whether these are called template variables, or madlib variables, or function variables .. eh, whatever works.
In any case, I agree .. we should let variables sit for a while before attempting to extend it. Let the bugs shake out. And remain open to a possible rewrite as a solution.
from homebrewery.
Yeah, I felt this was likely discussed heavily but I just couldn’t point to where, and I wasn’t really involved in variables discussion (by choice).
from homebrewery.
Talked about this again in gitter. Giving some more examples of how little templates could be made:
[heroBlock]:
{{hero
## $[hero]
$[tagline]
}}
[hero]:Superman
[tagline]:Man of Steel
$[heroBlock]
[hero]: Batman
[tagline]: The Dark Knight
$[heroBlock]
or
[lootTable]:
##### Loot Table
| Item | Roll |
|:------------------|:-----:|
| $[loot1] | 1 |
| $[loot2] | 2 |
| $[loot3] | 3 |
| $[loot4] | 4 |
| $[loot5] | 5 |
| $[loot6] | 6 |
[loot1]: Pair of dice
[loot2]: Bottle of water
[loot3]: One torn sock
[loot4]: A magic card
[loot5]: A spoon
[loot6]: Twelve turtle doves
$[lootTable]
from homebrewery.
Related Issues (20)
- Non-used URLs open bugged new page HOT 2
- Using scaleX or scaleY parameters causes skewing in rotated masks HOT 1
- Table of contents doesn't print accents in uppercase letters at the title HOT 5
- Ability to close search / replace bar HOT 10
- Title with shared link of a cloned brew in newpage shows up as error HOT 4
- White shear lines on masked images HOT 2
- images with alt-text with bad spaces get eaten
- Toc generation broken HOT 6
- Button tooltips for navigation, Snippets & Toolbar HOT 1
- New Jump-To hotkeys feature Conflicting with General Windows Select Behaviour HOT 3
- brewrenderer cleanup HOT 2
- Bulk Change Primary Author
- [DX] Stop editorThemes.json and themes.json from constantly showing as modified HOT 1
- Unselectable Text in Preview Pane
- \column break is not working, even on a new blank brew HOT 2
- Undefined pages when pasting text
- Alt/Option + Scroll Wheel for Zoom shortcut HOT 2
- Auto Pagination / Page Breaks
- Add more masks HOT 5
- Display non-printing characters in codemirror editor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrewery.