Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (58 sloc) 1.75 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Knot.x</title>
<link href="https://bootswatch.com/4/superhero/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Books list</div>
<div class="panel-body">
This page lists Java related books provided by <a
href="https://www.googleapis.com/books/v1/volumes?q=java">Googleapis book service</a>.
</div>
</div>
</div>
</div>
<div class="row">
<script data-knotx-knots="services,handlebars"
data-knotx-service="bookslist"
type="text/knotx-snippet">
{{#each _result.items}}
<div class="col-sm-3">
<div class="card">
<img class="card-img-top"
src="{{volumeInfo.imageLinks.thumbnail}}"
alt="{{volumeInfo.title}}">
<div class="card-block">
<h4 class="card-title">{{volumeInfo.title}}</h4>
<p class="card-text">
{{#each volumeInfo.authors as |author|}}
{{author}}{{#unless @last}}, {{/unless}}
{{/each}}<br />
Published: {{volumeInfo.publishedDate}}
</p>
</div>
</div>
</div>
{{/each}}
</script>
</div>
<hr/>
<div class="row">
<div class="col-sm-12">
<p>
<a class="btn btn-primary btn-large"
href="http://knotx.io/blog/hello-rest-service/">Go back to the tutorial</a>
</p>
</div>
</div>
</div>
</body>
</html>