These are chat archives for jescalan/roots

23rd
Sep 2016
Caleb Eby
@calebeby
Sep 23 2016 00:45
I am using roots-records and although it is pulling the information in (I can access it via records in the views), it is not creating new pages with template and out
Caleb Eby
@calebeby
Sep 23 2016 01:13
I think the hook parameter is not being called. If I console.log from there, nothing happens. Without the hook parameter, the data is an object instead of an array.
Caleb Eby
@calebeby
Sep 23 2016 01:22
Part of app.coffee:
  records(
      classes:
        url: "https://classroom-69a42.firebaseio.com/classes.json"
        hook: (data) ->
          periods = Object.keys(data).map (key) ->
            data[key]
          periods
        template: 'views/_period.jade',
        out: (period) -> "/classes/#{period.about.dataName}.html"

    )
Caleb Eby
@calebeby
Sep 23 2016 01:28
Never mind, it was a mixed indentation problem
Jeff Escalante
@jescalan
Sep 23 2016 18:08
:+1: