Closed PierrickLozach closed 8 years ago
@PierrickI3 metis uses handlebars files only while creating static html files.
For details : https://github.com/assemble/assemble
Thanks @onokumus , I just figured out that I can use jquery-datatables for this and it works.
So, just to make sure I understand: Are you saying that assemble and handlebars are used to generate the static html files in /dist and then if I want to add functionalities (like ajax requests), I should use these generated files only?
@PierrickI3 Yes. Assemble is used to generate the static html files. But http://handlebarsjs.com/ are not only used for this. You can see the details from http://handlebarsjs.com/ For more professional works, use http://emberjs.com/
First, thanks for this repo. It's really helpful!
I need to retrieve some data using $.ajax and populate a table. So, I created a new .hbs file and added the following code, based on your datatables example:
logs.hbs
I created a new logTable.hbs file that contains the row and columns:
Finally, I added a new logs.js in the assets/js/app folder that contains my ajax code:
I can see my js is called
How can I bind the result of my query to {{logTable}}? Should I create a template, create a helper for that?
I would welcome any help/tips on how to proceed.
Thanks.