zregvart commented on a change in pull request #272: Pull contributor data from JSON APIs URL: https://github.com/apache/camel-website/pull/272#discussion_r398629136
########## File path: layouts/shortcodes/committers.html ########## @@ -0,0 +1,26 @@ +{{ $urlPre := "https://projects.apache.org" }} +{{ $path := "/json/foundation" }} +{{ $group := getJSON $urlPre $path "/groups.json"}} +{{ $name := getJSON $urlPre $path "/people_name.json" }} +{{$orgnisations := getJSON "data/teamdata.json" }} + +<table class="tableblock frame-all grid-all stretch"> + <thead> + <tr> + <th>Name</th> + <th>ID</th> + <th>Organisation</th> + </tr> + </thead> + <tbody> + {{range $group.camel}} + {{ $id:= . }} Review comment: This could also be simpler as ```suggestion {{ range $id := $group.camel }} ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services