Skip to content

Commit

Permalink
Merge pull request #7 from arskang/bugfix/print-html
Browse files Browse the repository at this point in the history
Se quito la impresióndel html
  • Loading branch information
arskang authored Dec 10, 2021
2 parents aafe75f + e559702 commit dd3ba05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions acorn/coupon.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type coupon struct {
Params *acorntypes.CouponParams
}

// Generate a new coupon html element
// NewCoupon generate a new coupon html element
func (h HTML) NewCoupon(params *acorntypes.CouponParams) string {
p := &coupon{Params: params}
var button string
Expand All @@ -19,7 +19,7 @@ func (h HTML) NewCoupon(params *acorntypes.CouponParams) string {
return p.getCoupon(button)
}

// Generate a new promo html element
// NewPromo generate a new promo html element
func (h HTML) NewPromo(items *acorntypes.PromoItems) string {
sizes := acornstyles.GetSizes()
colorBlack := acornstyles.GetColors().Black
Expand Down
2 changes: 1 addition & 1 deletion acorn/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/arskang/acornmail/acorntypes"
)

// Generate a new image html element
// NewImage generate a new image html element
func (h HTML) NewImage(params *acorntypes.ImageParams) string {
alt := "Image"
widthColumn := acornstyles.GetWidthColumns()
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package acornmail

import (
"bytes"
"fmt"
"html/template"

"github.com/arskang/acornmail/acorn"
Expand All @@ -26,7 +25,5 @@ func MergeVariables(temp string, variables acorntypes.AcornVariables) (string, e
return "", err
}

fmt.Println(tpl.String())

return tpl.String(), nil
}

0 comments on commit dd3ba05

Please sign in to comment.