vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 additions and 0 deletions
45
vendor/github.com/vanng822/go-premailer/premailer/doc.go
generated
vendored
Normal file
45
vendor/github.com/vanng822/go-premailer/premailer/doc.go
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Package premailer is for inline styling.
|
||||
//
|
||||
// import (
|
||||
// "fmt"
|
||||
// "github.com/vanng822/go-premailer/premailer"
|
||||
// "log"
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// prem := premailer.NewPremailerFromFile(inputFile, premailer.NewOptions())
|
||||
// html, err := prem.Transform()
|
||||
// if err != nil {
|
||||
// log.Fatal(err)
|
||||
// }
|
||||
//
|
||||
// fmt.Println(html)
|
||||
// }
|
||||
// // Input
|
||||
//
|
||||
// <html>
|
||||
// <head>
|
||||
// <title>Title</title>
|
||||
// <style type="text/css">
|
||||
// h1 { width: 300px; color:red; }
|
||||
// strong { text-decoration:none; }
|
||||
// </style>
|
||||
// </head>
|
||||
// <body>
|
||||
// <h1>Hi!</h1>
|
||||
// <p><strong>Yes!</strong></p>
|
||||
// </body>
|
||||
// </html>
|
||||
//
|
||||
// // Output
|
||||
//
|
||||
// <html>
|
||||
// <head>
|
||||
// <title>Title</title>
|
||||
// </head>
|
||||
// <body>
|
||||
// <h1 style="color:red;width:300px" width="300">Hi!</h1>
|
||||
// <p><strong style="text-decoration:none">Yes!</strong></p>
|
||||
// </body>
|
||||
// </html>
|
||||
package premailer
|
||||
Loading…
Add table
Add a link
Reference in a new issue