<body class="lift:content_id=main">witch I assumed I would be able to write:
<body data-lift="content_id=main">but it dose not work.
I think the data-lift only works for snippets and the content_id is not
a snippet, but a special-cased marker.
It would be nice to support not using the class attribute for anything
Lift related.
Otoh, since content_id is not a snippet perhaps we should not use
data-lift="content_id=main" but something else like data-lift-content-id="main"
Wdyt?
/Jeppe
Your suggestions is good, personally I think sticking with data-lift
would be the cleanest approach from a user perspective as it would
probably feel more natural and generate less questions on this list.
How about, in addition to this "special-cased marker", add a new built
in snippet, allowing for a alternative syntax and use it something like
this <body data-lift="content?id=main"> ?
best regards
Peter Petersson
>
> /Jeppe
>
On 2011-12-22 10:48, Jeppe Nejsum Madsen wrote:
Peter Petersson<petersson.peter@gmail.com> writes:
best regards
Peter Petersson
/Jeppe
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
On Thu, Dec 22, 2011 at 2:17 AM, Peter Petersson <peterss...@gmail.com> wrote:
On 2011-12-22 10:48, Jeppe Nejsum Madsen wrote:
Peter Petersson<peterss...@gmail.com> writes:
I like Jeppe's approach and it separates the marker into a different attribute from the snippet stuff. Can you or Jeppe open a ticket on this? I'll take it unless Jeppe feels like he wants to do the work.
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code