Investigate making macros work better with the prototype kit
See original GitHub issueFrom support, a checkbox item
could look like this:
{ html: "Pension annex not uploaded",
value: "Pension annex not uploaded",
checked: (checked('reject','Pension annex not uploaded') == 'checked') },
In the kit we could make this much simpler.
- If a value is not given, we could make it the same as the text.
- We can manage
checked
automatically, by looking at the name and value and checking it against the stored data.
Leading to:
{ text: "Pension annex not uploaded"},
This would be relevant to other macros too.
I wonder if we can have macros in the prototype kit that try to do this extra work first, then call the Frontend macros. That way we keep in sync with Frontend macros.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
We've updated the prototype kit - Design in government
UK prototype kit is the tool we use for rapidly creating HTML prototypes for GOV.UK services. Today we released version 2.0.0 of the...
Read more >Tecplot 360 Scripting Guide - KIT
A Tecplot 360 macro is a set of instructions, called macro commands, ... These guidelines will allow you to create macros that will...
Read more >Design Thinking Tools: how to use them to solve complex ...
We've separeted 30 Design Thinking tools to support your innovation process. Read our article and start enjoying their benefits right now!
Read more >Analysis of the Electric Vehicle Industry
Greater adoption of PEVs will create rising demand for existing jobs and produce opportunities for new types of jobs as well. Among PEV...
Read more >Prototype Threading Designs - Get Started with Intel® Advisor
application and choose the best candidates for parallelization with threads. ... If you work in the Microsoft Visual Studio IDE, you do not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did a small experiment how downstream macros can wrap upstream components, which might help this: https://glitch.com/edit/#!/downstream-nunjucks-macro-example
Since we have control over the kit we could add options merging custom functions to make it more robust.
@joelanman to look for related ticket raised by Ollie