Skip to content

Instantly share code, notes, and snippets.

@ayxos
Last active August 29, 2015 13:56
Show Gist options
  • Save ayxos/8813424 to your computer and use it in GitHub Desktop.
Save ayxos/8813424 to your computer and use it in GitHub Desktop.
extends layout
block content
article
div.addCommentForm
form( method="post", action="/api/entries")
div
div
span.label Name :
input(name="name")
div
span.label Surname :
input(name="surname")
div
span.label Age :
input(name="age")
div#addCommentSubmit
input(type="submit", value="Add entry")
#entries
- each entry in entries
.entry(style="padding:2%;border:1px solid #51b6ae ")
span #{entry}
br
a#api(href='api/#{entry.id}', style="display:inline-block")
input(type='submit', value='View API')
input#del(type='submit', value='Delete', data-id='#{entry.id}')
block footer
blockquote #{footer}
a(href='https://github.com/cybermarkus1/node_APIrest') Github project
a(href='https://bitbucket.org/cybermarkus1/node_apirest', style="margin-left:2%") Bitbucket project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment