Class: Middleman::BibtexExtension

Inherits:
Extension
  • Object
show all
Defined in:
lib/middleman-bibtex.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options_hash = {}, &block) ⇒ BibtexExtension

Returns a new instance of BibtexExtension.



53
54
55
56
57
58
# File 'lib/middleman-bibtex.rb', line 53

def initialize(app, options_hash = {}, &block)
  super
  app.set(:bib, BibTeX.open(options.path))
  app.set(:cite_style, options.style)
  app.set(:cite_format, options.format)
end