BVB Source Codes

hologram Show slim_renderer.rb Source code

Return Download hologram: download slim_renderer.rb Source code - Download hologram Source code - Type:.rb
  1. Hologram::CodeExampleRenderer::Factory.define 'slim' do
  2.   example_template 'markup_example_template'
  3.   table_template 'markup_table_template'
  4.   lexer { Rouge::Lexer.find('slim') }
  5.  
  6.   rendered_example do |code|
  7.     begin
  8.       require 'slim'
  9.     rescue LoadError
  10.       raise "slim must be present for you to use slim"
  11.     end
  12.  
  13.     slim_engine = Slim::Template.new { code.strip }
  14.     slim_engine.render(Object.new, {})
  15.   end
  16. end
  17.  
downloadslim_renderer.rb Source code - Download hologram Source code
Related Source Codes/Software:
www.html5rocks.com - ....a top-notch resource for web developer 2017-05-12
MTStatusBarOverlay - A custom iOS status bar overlay seen in Apps like ... 2017-05-12
blueprint - Reverse engineer server configuration ... 2017-05-12
PullToRefresh - A simple iPhone TableViewController for adding the... 2017-05-12
mrjob - Run MapReduce jobs on Hadoop or Amazon Web Service... 2017-05-11
isso - a Disqus alternative https:... 2017-05-12
python3-cookbook - "The Python Cookbook" 3 rd Edition Translatio 2017-05-12
TSA-Travel-Sentry-master-keys - 3D reproduction of TSA Master key 2017-05-12
fatfree - A powerful yet easy-to-use PHP micro-framework des... 2017-05-13
rolify - Role management library with the resource scoping 2017-05-13
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top