Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 add $json method to get raw dictionary values #110

Merged
merged 5 commits into from
Nov 24, 2020

Conversation

kaisermann
Copy link
Owner

@kaisermann kaisermann commented Nov 23, 2020

βœ… Closes some topics brought on #109, #83

  • Add a json reactive method that can be used to return a raw value from the dictionary (could be called $raw πŸ€” )
// en.json
{
  "list": {
    "items": [{"name": "Name 1"}, {"name": "Name 2"}]
  }
}
<ul>
  {#each $json<Item[]>('list.items') as item}
    <li>{item.name}</li>
  {/each}
</ul>
  • Simplified the structure of the browser entrypoint

@kaisermann kaisermann self-assigned this Nov 23, 2020
@kaisermann kaisermann added the enhancement New feature or request label Nov 23, 2020
@kaisermann kaisermann changed the title feat: 🎸 add $json method to get raw dicitonary values feat: 🎸 add $json method to get raw dictionary values Nov 23, 2020
@kaisermann kaisermann merged commit abbd396 into main Nov 24, 2020
@kaisermann kaisermann deleted the feat/add-json-method branch November 24, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant