Skip to content

Commit

Permalink
changed example for table
Browse files Browse the repository at this point in the history
  • Loading branch information
matcornic committed Mar 28, 2017
1 parent d64ba0e commit fde49fe
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright 2017 Hermes - Mathieu Cornic

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -204,13 +204,13 @@ email := hermes.Email{
{
// Key is the column name, Value is the cell value
// First object defines what columns will be displayed
{Key: "Item", Value: "Node.js"},
{Key: "Description", Value: "Event-driven I/O server-side JavaScript environment based on V8"},
{Key: "Item", Value: "Golang"},
{Key: "Description", Value: "Open source programming language that makes it easy to build simple, reliable, and efficient software"},
{Key: "Price", Value: "$10.99"},
},
{
{Key: "Item", Value: "Mailgen"},
{Key: "Description", Value: "Programmatically create beautiful e-mails using plain old JavaScript."},
{Key: "Item", Value: "Hermes"},
{Key: "Description", Value: "Programmatically create beautiful e-mails using Golang."},
{Key: "Price", Value: "$1.99"},
},
},
Expand Down
8 changes: 4 additions & 4 deletions examples/default/default.receipt.html
Expand Up @@ -292,7 +292,7 @@ <h1>Hi Jon Snow,</h1>


>
Node.js
Golang
</td>

<td
Expand All @@ -301,7 +301,7 @@ <h1>Hi Jon Snow,</h1>


>
Event-driven I/O server-side JavaScript environment based on V8
Open source programming language that makes it easy to build simple, reliable, and efficient software
</td>

<td
Expand All @@ -325,7 +325,7 @@ <h1>Hi Jon Snow,</h1>


>
Mailgen
Hermes
</td>

<td
Expand All @@ -334,7 +334,7 @@ <h1>Hi Jon Snow,</h1>


>
Programmatically create beautiful e-mails using plain old JavaScript.
Programmatically create beautiful e-mails using Golang.
</td>

<td
Expand Down
15 changes: 15 additions & 0 deletions examples/default/default.welcome.html
Expand Up @@ -229,6 +229,21 @@ <h1>Hi Jon Snow,</h1>





<dl class="body-dictionary">

<dt>Firstname:</dt>
<dd>Jon</dd>

<dt>Lastname:</dt>
<dd>Snow</dd>

<dt>Birthday:</dt>
<dd>01/01/283</dd>

</dl>




Expand Down
3 changes: 3 additions & 0 deletions examples/default/default.welcome.txt
@@ -1,6 +1,9 @@
Hi Jon Snow,
Welcome to Hermes! We&#39;re very excited to have you on board.

Firstname: Jon
Lastname: Snow
Birthday: 01/01/283

To get started with Hermes, please click here:
https://hermes-example.com/confirm?token=d9729feb74992cc3482b350163a1a010
Expand Down
8 changes: 4 additions & 4 deletions examples/default/receipt.go
Expand Up @@ -21,13 +21,13 @@ func (r *Receipt) Email() hermes.Email {
Table: hermes.Table{
Data: [][]hermes.Entry{
{
{Key: "Item", Value: "Node.js"},
{Key: "Description", Value: "Event-driven I/O server-side JavaScript environment based on V8"},
{Key: "Item", Value: "Golang"},
{Key: "Description", Value: "Open source programming language that makes it easy to build simple, reliable, and efficient software"},
{Key: "Price", Value: "$10.99"},
},
{
{Key: "Item", Value: "Mailgen"},
{Key: "Description", Value: "Programmatically create beautiful e-mails using plain old JavaScript."},
{Key: "Item", Value: "Hermes"},
{Key: "Description", Value: "Programmatically create beautiful e-mails using Golang."},
{Key: "Price", Value: "$1.99"},
},
},
Expand Down
Binary file modified screens/default/receipt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fde49fe

Please sign in to comment.