Your SlideShare is downloading. ×
0
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Pilika
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Pilika

1,219

Published on

Template Engine Pilika

Template Engine Pilika

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,219
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide





























  • Transcript

    • 1. Pilika Java
    • 2. Pilika ‣ XHTML ‣ 2009 1 ‣ Java ‣
    • 3. ‣ ‣ View ‣
    • 4. ‣ ‣ View ‣
    • 5. ‣ XHTML ‣ ‣
    • 6. XHTML ‣ → Dreamweaver → ‣
    • 7. ‣ View α ‣
    • 8. ‣ → ‣
    • 9. Example - <p> <span plk:content=” user_name”>XX</span> </p>
    • 10. Example - <p> <span plk:content=” user_name”>XX</span> </p> {‘user_name’ => ‘Duke’ }
    • 11. Example - <p> <span plk:content=” user_name”>XX</span> </p> {‘user_name’ => ‘Duke’ } <p> <span>Duke</span> </p>
    • 12. Example - <p> ${user_name}</p>
    • 13. Example - <p> ${user_name}</p> {‘user_name’ => ‘Duke’ }
    • 14. Example - <p> ${user_name}</p> {‘user_name’ => ‘Duke’ } <p> Duke</p>
    • 15. Example - <p plk:if=quot;is_loginquot; > </p>
    • 16. Example - <p plk:if=quot;is_loginquot; > </p> {‘is_login’ => true }
    • 17. Example - <p plk:if=quot;is_loginquot; > </p> {‘is_login’ => true } <p> </p>
    • 18. Example - <p plk:if=quot;is_loginquot; > </p> {‘is_login’ => true } <p> </p> <p plk:if.not=quot;is_loginquot; > </p>
    • 19. Example - <ul> <li plk:for=quot;item in itemsquot;>${item}</li> </ul>
    • 20. Example - <ul> <li plk:for=quot;item in itemsquot;>${item}</li> </ul> items = [‘Apple’,‘Orange’,‘Pine’] {‘items’ => items }
    • 21. Example - <ul> <li plk:for=quot;item in itemsquot;>${item}</li> </ul> items = [‘Apple’,‘Orange’,‘Pine’] {‘items’ => items } <ul> <li>Apple</li> <li>Orange</li> <li>Pine</li> </ul>
    • 22. ‣ ‣ View ‣
    • 23. View ‣ ‣ Controller/Model ‣ JRuby on Rails
    • 24. JRuby ‣ Java VM Ruby ‣ Ruby on Rails ‣ Ruby Java
    • 25. JRuby on Rails ‣ ‣ Glassfish V3 War ‣ View
    • 26. JRuby on Rails ‣ ‣ Glassfish V3 War ‣ View Pilika
    • 27. JRuby on Rails Controller/Model View Rails Pilika Java JRuby JRE
    • 28. ‣ ‣ View ‣
    • 29. ‣ View ‣ JSR223
    • 30. JSR 223 Scripting for Java Platform ‣ Java → https://scripting.dev.java.net/ ‣ Ruby, Python, Groovy, Java Script… ScriptEngineManager mng = new ScriptEngineManager(); ScriptEngine engine = mng.getEngineByName(quot;rubyquot;); engine.eval(quot;puts ‘Hello, JRuby!’quot;);
    • 31. <div plk:content=quot;item.namequot; plk:attr.class=quot;item_class(item)quot; > </div> <plk:def type=quot;functionquot; language=quot;rubyquot; name=quot;item_class(item)quot; > <![CDATA[ def item_class(item) return 'new_item' if BASE_TIME < item.entry_at '' end ]]> </plk:def>
    • 32. <div plk:content=quot;item.namequot; plk:attr.class=quot;item_class(item)quot; > </div> <plk:def type=quot;functionquot; language=quot;rubyquot; name=quot;item_class(item)quot; > <![CDATA[ def item_class(item) return 'new_item' if BASE_TIME < item.entry_at '' Ruby end ]]> </plk:def>
    • 33. ‣ ‣ Java Rails ‣ ‣ http://www.deathmarch.jp/pilika/

    ×