Upgrade to Pro — share decks privately, control downloads, hide ads and more …

シンプルなテンプレートエンジンが欲しい

 シンプルなテンプレートエンジンが欲しい

B002134f2e824b2100761da10a9765a9?s=128

enta0701

May 17, 2018
Tweet

Transcript

  1. γϯϓϧͳ ςϯϓϨʔτΤϯδϯ ͕ཉ͍͠ 2018/05/17 Nim΋͘΋͘ձ @enta0701

  2. ୭ʁ ❐ɹ!FOUB ❐ɹגࣜձࣾϕʔγοΫ ❐ɹ3VCZ%PDLFSLT ɹ(P"OESPJE+BWB4DSJQU ❐ɹ/JNྺɿ೔͙ؒΒ͍ @enta0701 @endotakuya @enta0701

  3. ॳ৺ऀ͕ॳ৺ऀ޲͚ʹॻ͖·ͨ͠ ࠷ۙ/JN͕ΩςΔΒ͍͠ͷͰɺ -*/&#PUͰࢼͯ͠Έͨ IUUQTRJJUBDPNFOUBJUFNTFBEGGBDGBGF

  4. ຊ୊

  5. ʰͱΓ͋͑ͣϑϨʔϜϫʔΫ ৮͓͔ͬͯ͘ʱ

  6. 8FC'SBNFXPSL 4UBS ϝϯςφϯε ಛ௃ EPNKFTUFS   4JOBUSB෩ QSBHNBHJDLBSBY 

     41" JEMFXBOOBXBL   qBTL෩ ˞BXFTPNFOJNΛࢀߟʹɻ
  7. KFTUFS FYBNQMFOJN JNQPSUKFTUFS BTZODEJTQBUDI IUNMHFO SPVUFT HFU SFTQI )FMMPXPSME 

    SVO'PSFWFS $ nim c -r example.nim # => localhost:5000
  8. 7JFX·ΘΓ͸ඍົ ❐αϯϓϧͰ͸IUUQDPSFϞδϡʔϧͰpMUFSΛ࡞੒ ❐7JFXΛϑΝΠϧͰ؅ཧύʔγϟϧԽ͍ͨ͠ ❐)5.-λάͷׅހॻ͖ͨ͘ͳ͍ʢ4MJNͱ͔ʣ ❐(PͷIUNMUFNQMBUFϨϕϧͰ΋͍͍ UZQF1FSTPOTUSVDU\ /BNFTUSJOH "HFJOU ^ Q/BNF\\/BNF^^

    "HF\\"HF^^Q
  9. ςϯϓϨ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͸ IUUQTHJUIVCDPNFOEPUBLVZBTJNQMFOJNUFNQMBUF

  15. ·ͱΊ ❐"45΍ϚΫϩ͕ॻ͖΍͍͢ҹ৅ ❐΍ͬͺΓ৘ใྔ͸·ͩগͳ͍ ❐ެࣜϦϑΝϨϯε͕ݹ͍෦෼΋͋Δ ❐ه๏͕γϯϓϧͰಡΈ΍͘͢ɺֶशͷϋʔυϧ͸௿ͦ͏ ❐#PU΍ςϯϓϨʔτΤϯδϯʹ͸޲͍͍ͯΔ͔΋ ෼͔Βͳ͍ͳΓʹ੝Γ্͍͖͍͛ͯͨ