Mustdown

Simon Courtois
Simon CourtoisCTO Founder at PDFMonkey
Mustdown
Simon Courtois - @happynoff
Mustache

               name:   Github
               slogan: Social Coding (for all)    Object
               url:    http://github.com




        <h1>The {{name}} company</h1>

        <p>Slogan: {{slogan}}</p>

        <p>Site: {{url}}</p>                     <h1>The Github company</h1>

                                                 <p>Slogan: Social Coding (for all)</p>
          Mustache                               <p>Site: http://github.com</p>

                                                     HTML


github: simonc/mustdown                           http://slidesha.re/mustdown
Mustache
               name:     Github
               slogan: Social Coding (for all)
               url:     http://github.com
               projects:
                 - title: Hubot
                    url:    https://github.com/github/hubot
                                                               Object
                 - title: Gollum
                    url:    https://github.com/github/gollum



   <h1>The {{name}} company</h1>

   <p>Slogan: {{slogan}}</p>         <h1>The Github company</h1>
   <p>Site: {{url}}</p>
                                     <p>Slogan: Social Coding (for all)</p>
   <ul>
     {{#projects}}                   <p>Site: http://github.com</p>
     <li>{{title}}: {{url}}</li>
     {{/projects}}                   <ul>
   </ul>                               <li>Hubot: https://github.com/github/hubot</li>
                                       <li>Gollum: https://github.com/github/gollum</li>
          Mustache                   </ul>

                                                 HTML
github: simonc/mustdown                              http://slidesha.re/mustdown
Mustache

                                                                 ActiveRecord

  company = Company.where(name: 'Github').first

  template = <<-END                    Ruby
   <h1>The {{name}} company</h1>

    <p>Slogan: {{slogan}}</p>
    <p>Site: {{url}}</p>
                                       <h1>The Github company</h1>
    <ul>
      {{#projects}}                    <p>Slogan: Social Coding (for all)</p>
      <li>{{title}}: {{url}}</li>
      {{/projects}}                    <p>Site: http://github.com</p>
    </ul>
                                       <ul>
  END                                    <li>Hubot: https://github.com/github/hubot</li>
                                         <li>Gollum: https://github.com/github/gollum</li>
  Mustache.render(template, company)   </ul>

                                                  HTML
github: simonc/mustdown                               http://slidesha.re/mustdown
Markdown

   # The Github company
                                       Markdown
   Slogan: Social Coding (for all)

   Site: [Github](http://github.com)

   * Hubot
   * Gollum



                                     <h1>The Github company</h1>

                                     <p>Slogan: Social Coding (for all)</p>

                                     <p>Site: <a href=”http://github.com”>Github</a></p>

                                     <ul>
                                       <li>Hubot</li>
                                       <li>Gollum</li>
                                     </ul>

                                                         HTML
github: simonc/mustdown                                  http://slidesha.re/mustdown
Mustdown
               name:     Github
               slogan: Social Coding (for all)
               url:     http://github.com
               projects:
                 - title: Hubot
                    url:    https://github.com/github/hubot
                                                               Object
                 - title: Gollum
                    url:    https://github.com/github/gollum



    # The {{name}} company

    Slogan: {{slogan}}
                                     <h1>The Github company</h1>
    Site: {{url}}
                                     <p>Slogan: Social Coding (for all)</p>
    {{#projects}}
                                     <p>Site: http://github.com</p>
    * {{title}}: {{url}}
    {{/projects}}
                                     <ul>
                                       <li>Hubot: https://github.com/github/hubot</li>
    Mustdown                           <li>Gollum: https://github.com/github/gollum</li>
                                     </ul>

                                                 HTML
github: simonc/mustdown                              http://slidesha.re/mustdown
Mustdown - helpers
 class CompaniesController < ApplicationController
   def show                                           Controller
     @company = Company.where(name: 'Github').first
     @template = <<-END
         # The {{name}} company

         Slogan: {{slogan}}

         Site: {{url}}

         {{#projects}}
         * {{title}}: {{url}}
         {{/projects}}                <h1>The Github company</h1>
     END
                                      <p>Slogan: Social Coding (for all)</p>
   end
 end                                  <p>Site: http://github.com</p>

                                      <ul>
                                        <li>Hubot: https://github.com/github/hubot</li>
# app/views/companies/show.html.erb     <li>Gollum: https://github.com/github/gollum</li>
<%= mustdown @template, @company %>   </ul>

     View                                        HTML
github: simonc/mustdown                               http://slidesha.re/mustdown
Mustdown - helpers
 class CompaniesController < ApplicationController
   def show                                           Controller
     @company = Company.where(name: 'Github').first
   end
 end
 en:
   companies:           en.yml
     show:
       text: |
        # The {{name}} company

        Slogan: {{slogan}}
                                       <h1>The Github company</h1>
        Site: {{url}}
                                       <p>Slogan: Social Coding (for all)</p>
        {{#projects}}
        * {{title}}: {{url}}           <p>Site: http://github.com</p>
        {{/projects}}
                                       <ul>
                                         <li>Hubot: https://github.com/github/hubot</li>
# app/views/companies/show.html.erb      <li>Gollum: https://github.com/github/gollum</li>
<%= mustdown t(‘.text’), @company %>   </ul>

     View                                        HTML
github: simonc/mustdown                               http://slidesha.re/mustdown
Mustdown - helpers


          <%= mustdown template, object %>

          <%= mustache template, object %>

          <%= markdown template %>




github: simonc/mustdown       http://slidesha.re/mustdown
Installation


                          gem 'mustdown'

                             redcarpet

                            mustache


           http://github.com/simonc/mustdown



github: simonc/mustdown                  http://slidesha.re/mustdown
Configuration

                     $ rails generate mustdown:install


                     # config/initializers/mustdown.rb
                     Mustdown.configure do |config|
                          config.markdown_extensions = {
                            no_intra_emphasis: true,
                            tables:             true,
                            fenced_code_blocks: true,
                            autolink:           true,
                            strikethrough:      true
                          }

                          config.renderer_options = {
                            no_styles:        true,
                            safe_links_only: true
                          }
                     end




github: simonc/mustdown                          http://slidesha.re/mustdown
Configuration



       <%= markdown template, { autolink: false }, { no_links: true } %>


       <%= mustdown template, object, { autolink: false }, { no_links: true } %>




github: simonc/mustdown                              http://slidesha.re/mustdown
Mustdown - TODO


                           Rails

                     Tests Tests Tests !




github: simonc/mustdown            http://slidesha.re/mustdown
Questions ?


github: simonc/mustdown       http://slidesha.re/mustdown
Merci !
                          @happynoff




github: simonc/mustdown               http://slidesha.re/mustdown
1 of 15

Recommended

Write a Google Closure Editor Plugin by
Write a Google Closure Editor PluginWrite a Google Closure Editor Plugin
Write a Google Closure Editor Pluginyinhm .
1.8K views27 slides
Get to know Git by
Get to know GitGet to know Git
Get to know GitRuncy Oommen
126 views34 slides
Meetup live code_wear_2015 by
Meetup live code_wear_2015Meetup live code_wear_2015
Meetup live code_wear_2015Florent Champigny
463 views38 slides
Do zero ao deploy by
Do zero ao deployDo zero ao deploy
Do zero ao deployjefferson Otoni Lima
72 views41 slides
Using The EGit Eclipse Plugin With Git Hub by
Using The EGit Eclipse Plugin With Git HubUsing The EGit Eclipse Plugin With Git Hub
Using The EGit Eclipse Plugin With Git Hubguest4bce3214
372 views32 slides
Organize your assets with Rails by
Organize your assets with RailsOrganize your assets with Rails
Organize your assets with RailsSimon Courtois
761 views51 slides

More Related Content

Similar to Mustdown

Intro. to Git and Github by
Intro. to Git and GithubIntro. to Git and Github
Intro. to Git and GithubOlmo F. Maldonado
194 views51 slides
introductiontogitandgithub-120702044048-phpapp01.pdf by
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
7 views23 slides
Mr.Crabs Git workflow by
Mr.Crabs Git workflowMr.Crabs Git workflow
Mr.Crabs Git workflowWuriyanto Musobar
170 views8 slides
Introduction to git and github by
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
4.3K views23 slides
Git workflows presentation by
Git workflows presentationGit workflows presentation
Git workflows presentationMack Hardy
2.7K views22 slides
Open up your platform with Open Source and GitHub by
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubScott Graham
1.3K views21 slides

Similar to Mustdown(20)

introductiontogitandgithub-120702044048-phpapp01.pdf by BruceLee275640
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee2756407 views
Introduction to git and github by Aderemi Dadepo
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo4.3K views
Git workflows presentation by Mack Hardy
Git workflows presentationGit workflows presentation
Git workflows presentation
Mack Hardy2.7K views
Open up your platform with Open Source and GitHub by Scott Graham
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
Scott Graham1.3K views
Creating and Deploying Static Sites with Hugo by Brian Hogan
Creating and Deploying Static Sites with HugoCreating and Deploying Static Sites with Hugo
Creating and Deploying Static Sites with Hugo
Brian Hogan1.2K views
Matt Gauger - Git & Github web414 December 2010 by Matt Gauger
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010
Matt Gauger1.7K views
Open Source Web Charts by HaNJiN Lee
Open Source Web ChartsOpen Source Web Charts
Open Source Web Charts
HaNJiN Lee6.6K views
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials by jazoon13
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -EssentialsJAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
JAZOON'13 - Thomas Hug & Bartosz Majsak - Git Workshop -Essentials
jazoon133.3K views
Atlanta Pm Git 101 by Jason Noble
Atlanta Pm Git 101Atlanta Pm Git 101
Atlanta Pm Git 101
Jason Noble916 views
Introduction to GitHub Actions by Bo-Yi Wu
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
Bo-Yi Wu19.3K views
The everyday developer's guide to version control with Git by E Carter
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
E Carter20.4K views

More from Simon Courtois

Conseils pour un lancement Product Hunt réussi by
Conseils pour un lancement Product Hunt réussiConseils pour un lancement Product Hunt réussi
Conseils pour un lancement Product Hunt réussiSimon Courtois
72 views28 slides
Dependency sorting in Ruby with TSort by
Dependency sorting in Ruby with TSortDependency sorting in Ruby with TSort
Dependency sorting in Ruby with TSortSimon Courtois
942 views16 slides
How Unidecoder Transliterates UTF-8 to ASCII by
How Unidecoder Transliterates UTF-8 to ASCIIHow Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIISimon Courtois
782 views34 slides
Get Slim! by
Get Slim!Get Slim!
Get Slim!Simon Courtois
2.2K views23 slides
Multi tenant/lang application with Ruby on Rails by
Multi tenant/lang application with Ruby on RailsMulti tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on RailsSimon Courtois
1.7K views14 slides
Fake your files - MemFs by
Fake your files - MemFsFake your files - MemFs
Fake your files - MemFsSimon Courtois
1K views24 slides

More from Simon Courtois(13)

Recently uploaded

Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...ShapeBlue
86 views25 slides
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...ShapeBlue
74 views17 slides
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...ShapeBlue
113 views18 slides
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
68 views13 slides
"Surviving highload with Node.js", Andrii Shumada by
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada Fwdays
49 views29 slides
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc
130 views29 slides

Recently uploaded(20)

Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue86 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue74 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue113 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue68 views
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada
Fwdays49 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc130 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue138 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue58 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue120 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software373 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue154 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10110 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue93 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue121 views
State of the Union - Rohit Yadav - Apache CloudStack by ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue218 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue69 views

Mustdown

  • 2. Mustache name: Github slogan: Social Coding (for all) Object url: http://github.com <h1>The {{name}} company</h1> <p>Slogan: {{slogan}}</p> <p>Site: {{url}}</p> <h1>The Github company</h1> <p>Slogan: Social Coding (for all)</p> Mustache <p>Site: http://github.com</p> HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 3. Mustache name: Github slogan: Social Coding (for all) url: http://github.com projects: - title: Hubot url: https://github.com/github/hubot Object - title: Gollum url: https://github.com/github/gollum <h1>The {{name}} company</h1> <p>Slogan: {{slogan}}</p> <h1>The Github company</h1> <p>Site: {{url}}</p> <p>Slogan: Social Coding (for all)</p> <ul> {{#projects}} <p>Site: http://github.com</p> <li>{{title}}: {{url}}</li> {{/projects}} <ul> </ul> <li>Hubot: https://github.com/github/hubot</li> <li>Gollum: https://github.com/github/gollum</li> Mustache </ul> HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 4. Mustache ActiveRecord company = Company.where(name: 'Github').first template = <<-END Ruby <h1>The {{name}} company</h1> <p>Slogan: {{slogan}}</p> <p>Site: {{url}}</p> <h1>The Github company</h1> <ul> {{#projects}} <p>Slogan: Social Coding (for all)</p> <li>{{title}}: {{url}}</li> {{/projects}} <p>Site: http://github.com</p> </ul> <ul> END <li>Hubot: https://github.com/github/hubot</li> <li>Gollum: https://github.com/github/gollum</li> Mustache.render(template, company) </ul> HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 5. Markdown # The Github company Markdown Slogan: Social Coding (for all) Site: [Github](http://github.com) * Hubot * Gollum <h1>The Github company</h1> <p>Slogan: Social Coding (for all)</p> <p>Site: <a href=”http://github.com”>Github</a></p> <ul> <li>Hubot</li> <li>Gollum</li> </ul> HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 6. Mustdown name: Github slogan: Social Coding (for all) url: http://github.com projects: - title: Hubot url: https://github.com/github/hubot Object - title: Gollum url: https://github.com/github/gollum # The {{name}} company Slogan: {{slogan}} <h1>The Github company</h1> Site: {{url}} <p>Slogan: Social Coding (for all)</p> {{#projects}} <p>Site: http://github.com</p> * {{title}}: {{url}} {{/projects}} <ul> <li>Hubot: https://github.com/github/hubot</li> Mustdown <li>Gollum: https://github.com/github/gollum</li> </ul> HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 7. Mustdown - helpers class CompaniesController < ApplicationController def show Controller @company = Company.where(name: 'Github').first @template = <<-END # The {{name}} company Slogan: {{slogan}} Site: {{url}} {{#projects}} * {{title}}: {{url}} {{/projects}} <h1>The Github company</h1> END <p>Slogan: Social Coding (for all)</p> end end <p>Site: http://github.com</p> <ul> <li>Hubot: https://github.com/github/hubot</li> # app/views/companies/show.html.erb <li>Gollum: https://github.com/github/gollum</li> <%= mustdown @template, @company %> </ul> View HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 8. Mustdown - helpers class CompaniesController < ApplicationController def show Controller @company = Company.where(name: 'Github').first end end en: companies: en.yml show: text: | # The {{name}} company Slogan: {{slogan}} <h1>The Github company</h1> Site: {{url}} <p>Slogan: Social Coding (for all)</p> {{#projects}} * {{title}}: {{url}} <p>Site: http://github.com</p> {{/projects}} <ul> <li>Hubot: https://github.com/github/hubot</li> # app/views/companies/show.html.erb <li>Gollum: https://github.com/github/gollum</li> <%= mustdown t(‘.text’), @company %> </ul> View HTML github: simonc/mustdown http://slidesha.re/mustdown
  • 9. Mustdown - helpers <%= mustdown template, object %> <%= mustache template, object %> <%= markdown template %> github: simonc/mustdown http://slidesha.re/mustdown
  • 10. Installation gem 'mustdown' redcarpet mustache http://github.com/simonc/mustdown github: simonc/mustdown http://slidesha.re/mustdown
  • 11. Configuration $ rails generate mustdown:install # config/initializers/mustdown.rb Mustdown.configure do |config| config.markdown_extensions = { no_intra_emphasis: true, tables: true, fenced_code_blocks: true, autolink: true, strikethrough: true } config.renderer_options = { no_styles: true, safe_links_only: true } end github: simonc/mustdown http://slidesha.re/mustdown
  • 12. Configuration <%= markdown template, { autolink: false }, { no_links: true } %> <%= mustdown template, object, { autolink: false }, { no_links: true } %> github: simonc/mustdown http://slidesha.re/mustdown
  • 13. Mustdown - TODO Rails Tests Tests Tests ! github: simonc/mustdown http://slidesha.re/mustdown
  • 14. Questions ? github: simonc/mustdown http://slidesha.re/mustdown
  • 15. Merci ! @happynoff github: simonc/mustdown http://slidesha.re/mustdown