Slide 1

Slide 1 text

Tsutomu Kawamura @cognitom Librize LLC / OpenSource Cafe, Shimokitazawa Riotͷ΢ϥΨϫ: ver 3ͱιʔείʔυղઆ

Slide 2

Slide 2 text

cognitom

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

$PEFS%PKP ϦϒϥΠζ

Slide 5

Slide 5 text

HJUIVCDPNDPHOJUPN

Slide 6

Slide 6 text

ࠓ೔ɺ࿩͢͜ͱ

Slide 7

Slide 7 text

w 3JPUͷۙگ w 3JPUͷ։ൃମ੍ w ˠͰԿ͕มΘͬͨͷ w ιʔείʔυΛ೷͍ͯΈΑ͏ ͜ͷ͋ͨΓΛ࿩ͦ͏͔ͱ

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

3JPUͷۙگ

Slide 10

Slide 10 text

೥ՆWFS ༧ఆ

Slide 11

Slide 11 text

͡Θ͡Θ͖ͯΔ

Slide 12

Slide 12 text

΋͏͙͢˒,

Slide 13

Slide 13 text

(JU)VCͷελʔ ˒ ίϯτϦϏϡʔλ ਓ ϓϧϦΫΤετͷ਺ ݅ 2JJUBͷهࣄ ݅ 3JPUͷͻΖ͕Γ

Slide 14

Slide 14 text

W W ϑΝΠϧαΠζ ,# ,# ެࣜϦϙδτϦ ݸ ݸ ίΞίϛολʔ ਓ ਓ एׯΆͬͪΌΓ

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

3JPUͷ։ൃମ੍

Slide 18

Slide 18 text

ίΞίϛολʔͷډ৔ॴ

Slide 19

Slide 19 text

೥݄W ϑΟϯϥϯυ

Slide 20

Slide 20 text

೥य़ εΠε͔Β ΞδΞͷ࠭യ΁

Slide 21

Slide 21 text

೥Ն ϝΩγί͔Β ձ௕৬తͳ ςΩαε͔Β ౦ژ͔Β

Slide 22

Slide 22 text

೥ Ͳ͔͔͜Β ࣌ʑ߱ྟ

Slide 23

Slide 23 text

͕ɺ3JPUͰ΍͍ͬͯΔ͜ͱ

Slide 24

Slide 24 text

w ॳظͷςετେྔ௥Ճ w TUZMFλάରԠ w 4DPQFE$44ରԠ w υΩϡϝϯτͷࠃࡍԽ ͷίϯτϦϏϡʔγϣϯ w SJPUFYBNQMF w SJPUSPVUF w LBSNBSJPU w SPMMVQQMVHJOSJPU ΄͔

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

ˠͰԿ͕มΘͬͨͷ

Slide 27

Slide 27 text

Ͱ௥Ճ͞ΕΔػೳɺ ͱ͍͏ΑΓ͸ɺ ͔ΒมΘ͖ͬͯͨͱ͜Ζ

Slide 28

Slide 28 text

ςετ

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

4DPQFE$44

WP-D Week

:scope { /* ίϯϙʔωϯτͦͷ΋ͷͷελΠϧ */ } p { /* ίϯϙʔωϯτ಺ͷpλάͷΈʹ༗ޮ */ } Wʙ

Slide 31

Slide 31 text

ZJFME

Hello

this.text = 'world' Wʙ { text }

Hello world

Slide 32

Slide 32 text

NJYJO var logMixin = { log: function(m) { console.log(m) } } Wʙ

{ opts.title }

this.mixin(logMixin) this.log(‘hey!’)

Slide 33

Slide 33 text

SJPUSPVUF riot.route('/fruit', function(name) { console.log('The list of fruits') }) riot.route('/fruit/*', function(name) { console.log('The detail of ' + name) }) Wʙ

Slide 34

Slide 34 text

SJPUDPNQJMFS UNQM Wʙ

Slide 35

Slide 35 text

SJPUDMJ PCTFSWBCMF Wʙ

Slide 36

Slide 36 text

EN ES FR JA RU ZH DE riotjs.com υΩϡϝϯτͷࠃࡍԽ

Slide 37

Slide 37 text

&YBNQMFT

Slide 38

Slide 38 text

HMPCBMNJYJO var logMixin = { log: function(m) { console.log(m) } } riot.mixin(logMixin) Wʙ

{ opts.title }

this.log(‘hey!’)

Slide 39

Slide 39 text

Wʙ EBUBJT

Slide 40

Slide 40 text

{item.key}
{item.value}
W ʙ WJSUVBM

Slide 41

Slide 41 text

w $ISPNFͷ
 ϓϥάΠϯͰࠔΔ݅ w SJPUDTQKT Wʙ $POUFOU4FDVSJUZ1PMJDZ $41ରԠ

Slide 42

Slide 42 text

ߴ଎Խ࠷దԽ ϧʔϓͷڍಈͷpY N @@ N

Slide 43

Slide 43 text

JGଐੑͷڍಈ Wʙ w JGଐੑΛ͚ͭͨ࣌ʹɺ
 USVFʹͳΔ·ͰϚ΢ϯτ͞Εͳ͍ w JGଐੑΛ͚ͭͨ࣌ʹɺ
 GBMTFͰ΋Ϛ΢ϯτ͞Εͯ͠·͏ ॏཁ

Slide 44

Slide 44 text

όϯυϧํ๏ w ಠࣗ w TNBTI w SPMMVQ

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

ιʔείʔυΛ೷͍ͯΈΑ͏

Slide 47

Slide 47 text

·ͣ͸Ϋϩʔϯ

Slide 48

Slide 48 text

ίʔσΟϯάελΠϧ w ߦ຤ͷηϛίϩϯͳ͠ w ୹͍ͷ͕ਖ਼ٛ w ΍͸ڍಈΛཧղͯ͠࢖͏ w JGจ΍GPSจͰɺলུՄೳͰ͋Ε͹\^Λ࢖Θͳ͍ w ԋࢉࢠͷධՁॱΛਖ਼͘͠ߟྀɻ৑௕ͳ Λ࢖Θͳ͍ w &4Ͱॻ͕͘ɺ
 ม׵࣌ʹ௕͘ͳΔ$MBTTͳͲ͸࢖Θͳ͍ ݱࡏͷͱ͜Ζ w ಠࣗͷؔ਺Λ༏ઌతʹ࢖͏ ৔໘͕͋Δ w 0CKFDUBTTJHO Ͱ͸ͳ͘ɺFYUFOE w <>GPS&BDI Ͱ͸ͳ͘ɺFBDI

Slide 49

Slide 49 text

όϯυϧํ๏ w ϏϧυͳͲͷλεΫ࣮ߦʹ͸NBLFΛ࢖͏ɻ w όϯυϥ͸3PMMVQ w &4ม׵͸#BCFM w PCTFSWBCMF UNQM DPNQJMFS͸֎෦ϦϙδτϦ
 ˞͔ΒɺSJPUSPVUF͸ؚ·Εͳ͍ w ༻్ผʹෳ਺ͷόʔδϣϯΛ༻ҙ

Slide 50

Slide 50 text

w ެ։"1*MJCSJPUKT w 3JPUͷίΞ෦෼MJCCSPXTFSUBHDPSFKT w λά%0.ૢ࡞ͷଟ͘͸ϢʔςΟϦςΟؔ਺Ͱ w λάʹؔ͢Δ΋ͷUBHIFMQFSKT w %0.ʹؔ͢Δ΋ͷEPNIFMQFSKT w ͦͷଞNJTDKT w λάͦͷ΋ͷMJCCSPXTFSUBHUBHKT w %0.ͷύʔε ͱ͍͏ΑΓ͸USBWFSTF QBSTFKT w දݱ FYQSFTTJPO JGKT FBDIKT OBNFEKTͳͲ w ߋ৽VQEBUFKT w ఆ਺HMPCBMWBSJBCMFTKT ϑΥϧμߏ੒

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Ϛ΢ϯτ͢Δ·Ͱ w SJPUUBH ؔ਺Ͱొ࿥ࡁΈͷɺλάͷ࣮૷Λऔಘ w λάΛΠϯελϯεԽ w λάͷ࣮૷ )5.-ςϯϓϨʔτ ΛJOOFS)5.-ʹಥͬࠐΉ w ύʔε͢Δɺͱ͍͏ΑΓ%0.Λτϥόʔεͯ͠ɺղੳ w ༩͑ΒΕͨσʔλͰɺλάͷ಺༰Λߋ৽ w ςϯϓϨʔτม਺ FYQSFTTJPO Λߋ৽ w Ϛ΢ϯτ׬ྃΠϕϯτ

Slide 56

Slide 56 text

{ message }

this.message = "Hello!" riot.tag2(‘my-tag’, '

{ message }

’, ‘', '', function(opts) { this.message = "Hello!" } ) riot.mount(‘#main’, ‘my-tag’) #main DOM flag flag

{ message }

Hello!

⁞   ⁠

Hello!

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

࢑͘ோΊͯΕ͹ɺେৎ෉

Slide 61

Slide 61 text

೥݄ ೥݄ ৄ͘͠͸2JJUB΁

Slide 62

Slide 62 text

13͓଴ͪͯ͠·͢ ϓϧϦΫΤετ

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

5IBOLZPV GCDPNHSPVQTUPLZPSJPU HJUUFSJNSJPUSJPU

Slide 65

Slide 65 text

ਫɾ౔༵͸ Լ๺୔Ͱ ళ൪ͯ͠·͢ ؾܰʹฉ͖ʹདྷͯ ͍ͩ͘͞