[Core DSL] para
Schwad opened this issue · comments
Nick Schwaderer commented
para
"Para" returns text. We're also including other text rendering methods in this issue such as "subtitle", "caption", etc.
Tasklist
- Initialize within the gem
- Migrate
def render
to use our native HTML renderer - Support a collection of arguments, joined into one string.
- e.g.
para 'this', 'is', 'a', 'string'
- e.g.
-
stroke
kwarg to add color @christhesoul -
Methods to add
-
banner
; 48px -
title
; 34px -
subtitle
; 26px; -
tagline
; 18px; -
caption
; 14px; -
para
; 12px; -
inscription
; 10px;- Alias
ins
forinscription
- Alias
-
-
Options
-
size
@DRBragg- Manually resize this text: e.g.
para 'hi', size: 34
- Like their HTML counterparts
- Manually resize this text: e.g.
- e.g.
para "hello", strong("dude"), em("how's it going?")
-
strong
-
em
-
code
-
Drew Bragg commented
The size
option seems like a nice way to ease in. I'll tackle that first
Marcin Gajewski commented
@DRBragg FYI there is open PR which will make adding size
easy
Drew Bragg commented
#55 handles the size option. Should make the size methods fairly easy