Socket
Book a DemoInstallSign in
Socket

manic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manic

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

manic

Manic is a static site generator, with configuration in ruby. bin/manic looks for config.manic in the current working directory.. parsing site into output

usage

Manic.config do 
  # set global variables
  site_title  "Manic static site example
  author  "Justin Baker"
  
  # extend with helper method
  plugin TagHelper
  plugin "filename"
  
  # add helper method for use in templates
  img_tag lambda{|src| "<img src=\"#{src}\" />"}
end

plugins

Plugins are as basic as they can be. The API consists of just a module with helper methods. By default, all files in plugins will be autoloaded and available. This doesn't mean you can't load plugins other ways. Calling plugin ModuleName or plugin "filename" in the Manic config file will load a plugin.

Helper methods can also be defined inside the Manic config by passing a lambda.

Manic.config do
  img_tag lambda{|src| "<img src=\"#{src}\" />"}
end

Now you have an img_tag helper method available to you.

FAQs

Package last updated on 07 Feb 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.