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

Data binding exemple #146

Open
julesmoretti opened this issue Mar 31, 2016 · 0 comments
Open

Data binding exemple #146

julesmoretti opened this issue Mar 31, 2016 · 0 comments

Comments

@julesmoretti
Copy link

Hello there.

I am using keystone and Handlebar and would love some help/pointers perhaps on how to achieve a live filter. So the use case for this is a list of projects being rendered on a page that can be sorted by say date, or tags (hiding non checked ones etc...) using a series of checkboxes etc...

What I have is something like this:

Sort by Date
Sort by Name

Categories

Show all
That is Programming related
That is Html related

{{# each projects}}

{{title}}

{{dateComplete}}

{{description}}

{{tag}} {{/each}}

locals.date= false;
locals.tags= {all: true, programming: true, html: true};
locals.name=true;

locals.projects = [
{ title: 'Project',
dateComplete: 2001,
description: 'Lorem ipsum Elit sint in sint quis dolore ullamco commodo sit.',
type: 'Programming'
},
{...}];

thank you for the help with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant