hungrybluedev / whisker Goto Github PK
View Code? Open in Web Editor NEWV project for supporting whisker, a descendent of the Mustache template language.
Home Page: https://trywhisker.com
License: MIT License
V project for supporting whisker, a descendent of the Mustache template language.
Home Page: https://trywhisker.com
License: MIT License
The template can't be rendered if the variable it refers to is missing in the data. This is different from mustache, where "If the top context is reached and the name key is still not found, nothing will be rendered."
This behavior is confusing and deserves mention in the documentation.
Ideally, it should suggest how to make conditional rendering possible.
variable is missing in the data but mentioned in the template
No response
No response
0.2.0
any
The project is currently tested on a separate machine to ensure that the package can be installed and used properly. It needs to be included in the CI so that third-party users of this library should not face any inconveniences.
This will ensure that the package is always installable for users.
Add a sample project and a separate workflow file that runs this.
No response
Latest
All environments.
Recursive templates that contain lists are currently broken. This is a side-effect of broken nested-list handling as documented in #1.
The commented out test case in the partial spec should work.
It causes invalid memory access errors.
Run the test case shown above.
It is possible that fixing #1 should fix this as well.
No response
Latest
All environments.
Please add description how to iterate over a map into the Readme
Currently, the Readme describes iteration over items of an array and using a map with hard-coded key values.
It would be great to have an example of how to iterate over a map using dynamic key/value pairs.
No response
No response
0.2.0
any
Please provide a way to conditionally render parts of the template where the condition is emptiness / non-emptiness of the list.
When rendering lists as HTML, more often than not, it is needed to render parts of the layout only if there are some elements in the list, for example:
There are two possible ways to implement this functionality:
<+list>
<h1>Currenty on vacation</h1>
<ul>
<*list><li>{{.}}</li></list>
</ul>
</list>
<-list>Nobody is no vacation now</list>
The second way feels more elegant and will work for manually constructed data models as well.
No response
0.2.0
any
Right now, the list section duplication code is incomplete. It works for flat lists but fails for nested lists.
Expecting nested lists to work. An example is the commented out part here.
Invalid memory access.
Just run the code that is shown in the highlighted section and is currently commented out in the spec.
The copying algorithm needs to reattach jump points when the list section is being copied.
No response
Latest
All environments.
Currently, the source code has very few comments. Documentation comments should be added at the very least so that module documentation can be generated.
For user reference.
Add documentation comments to public module functions.
No response
0.1.x
All environments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.