...

Source file src/code.rocketnine.space/tslocum/sriracha/extension_post.go

Documentation: code.rocketnine.space/tslocum/sriracha

     1  package sriracha
     2  
     3  // ExtensionPost defines the interface for extensions that handle creating a post.
     4  type ExtensionPost interface {
     5  	Extension
     6  
     7  	// Post is called when a new post is created. Extensions may modify the
     8  	// post and apply formatting or other operations on it. All text is
     9  	// initially HTML-escaped.
    10  	Post(post *Post) error
    11  }
    12  

View as plain text