COSCUP x RubyConf TW 2021

使用 Kamiflex 快速生成好維護的 LINE Flex Message
08-01, 12:50–13:20 (Asia/Taipei), TR209
Language: 漢語


Translate Title

Using Kamiflex to generate maintainable LINE Flex Messages

Talk Length

40

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – yes Target audience

需要在 LINE Bot 上顯示動態產生 LINE Flex Message 的工程師

Difficulty

中階

講者所屬的公司或組織名稱

Yoctol

講者所屬社群

Chatbot TW

slido url

https://app.sli.do/event/zle0lu8f

hackmd url

https://hackmd.io/@coscup/rkgpLTvCO/%2F%40coscup%2FSytsLTwA_

Abstract

LINE Flex Message 是 LINE Bot 當中的核心功能,一個提供良好使用者體驗的 LINE Flex Message 版型往往動輒上百行,甚至上千行,而一般工程師一個螢幕頂多只能看 50 行,在沒有良好的工具支持的情況下,若想要將資料套版,工程師不只眼睛很累,心也很累。

Kamiflex 是使用 Ruby 程式語言所建立的 Open Source 套件,是專門為了生成 LINE Flex Messages 而存在的 DSL。使用 Kamiflex 可以在一個螢幕畫面範圍內顯示整個 LINE Flex Message 所需的資訊,而且除了滿足簡單的變數套版、製作高階組件的需求之外,Kamiflex 也支援使用判斷式與迴圈等複雜的版型設計。

本議程將說明如何使用 Kamiflex 來生成 LINE Flex Message,讓工程師眼睛不累,心情也變得更愉快。

English Abstract

LINE Flex Message is the main feature of LINE Bot. A LINE Flex Message template that provides a good user experience often has hundreds of lines or even thousands of lines. But engineers can only see at most 50 lines on a screen. If you want to render a LINE Flex Message template without the support of the tools, engineers is not only tired of eyes, but also tired of soul.

Kamiflex is an Open Source package using the Ruby programming language. It is a DSL dedicated to generating LINE Flex Messages. Using Kamiflex, you can display the information required by the entire LINE Flex Message on a single screen. In addition to satisfying the needs of variables rendering and high-end components, Kamiflex also supports complex template design, such as judgment and loops.

This agenda will explain how to use Kamiflex to generate LINE Flex Message, so that the engineer’s eyes are not tired and become happy.

other info