Is it possible to use Phlex as templating language? #589
Unanswered
Urist-McUristurister
asked this question in
Help
Replies: 1 comment 1 reply
-
Ooh, I kinda like that idea! So simply define a template h1 do
"hello"
end Which is essentially just the content of the It's definately not something you would want to do all the time, but as a conveniant way to create quick and simple views, it really nice. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use Phlex as templating language, akin to Markaby or Arbre? Without all the hassle of an extra class, all the methods, variables, etc. Just a file, say,
app/views/posts/index.html.phlex
, that would contain all the code that normally goes intotemplate
method of a Phlex component, and let Rails (or, for example, Tilt) take care of everything else.If it's not possible at the moment, are there, maybe, any plans to enable this in the future?..
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions