terribleMia’s avatarterribleMia’s Twitter Archive—№ 7,353

  1. moving my slides over to eleven_ty. Which syntax do you like best? (samples of each in the replies)
    1. …in reply to @TerribleMia
      - yaml is super compact, structured, & easy. - markdown provides best syntax highlighting, but the most work to split & process & render - nunjucks is the most direct & explicit - no special logic required
      1. …in reply to @TerribleMia
        If I were to support multiple, the most "agile" approach would be: - start with nunjucks macros - add support for yaml rendered via those same macros - add special md splitting/parsing, also rendered via macros
    2. …in reply to @TerribleMia
      yaml (w/ md): - from: shared use: intro - title: 1989… **HTML** sub: Markup Language - quote: | It is required that HTML be a **common language** between all platforms. cite: Tim BL - img: process/www-cern.jpg alt: First website
      1. …in reply to @TerribleMia
        md (w/ yaml) --- shared: intro --- <!-- slide --> ## 1989: **HTML** Markup Language <!-- slide --> > It is required that HTML be a common > language between all platforms. > --Tim BL <!-- slide --> --- image: process/www-cern.jpg alt: First website ---
        1. …in reply to @TerribleMia
          njk (w/ md) {{ shared.intro() }} {{ s.title( main='1989: **HTML**', sub='Markup Language' ) }} {% call s.quote('Tim BL') %} It is required that HTML be a common language between all platforms. {% endcall %} {{ s.img( src='process/www-cern.jpg' alt='First website' )