Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7535097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:13:40+00:00 2026-05-30T06:13:40+00:00

Another lift beginner question: I want to render a HTML Definition List in a

  • 0

Another lift beginner question:

I want to render a HTML Definition List in a Lift Snippet like this:

<dl>
  <dt>Name</dt>
  <dd>Seppl</dd>

  <dt>Street</dt>
  <dd>abc</dd>
</dl>

The snippet-template looks now like this:

<dl>
  <div class="definition">
    <dt>Term</dt>
    <dd>Description</dd>
  </div>
</dl>

The Scala Snippet code:

def render = {
  val values=List(("Name", "Seppl"), ("Street", "abc"))

  ".definition" #> values.map(value => 
    ("dt" #> value._1) &
    ("dd" #> value._2))
}

This works, but I want a definition list without div-Tags (I think, this it isn’t valid HTML.)

Is this possible with CSS Transformers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:13:42+00:00Added an answer on May 30, 2026 at 6:13 am

    As you don’t seem to use CSS I would recommend you to use the following:

    Snippet Template code:

    <div class="lift:render"/>
    

    Scala Snippet code:

    def render = {
      val values=List(("Name", "Seppl"), ("Street", "abc"))
    
      values.map(value => 
        <dt>{value._1}</dt>
        <dd>{value._2}</dd>
      )
    }
    

    Of course I avoid using CSS selectors so I don’t know if it is exactly what you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Another easy one hopefully. Let's say I have a collection like this: List<DateTime> allDates;
Another question related to this one . I have a List<SortableObjects> that is the
Another noob question that seems like it should be simple: Thanks to the help
Another quick question here, I have this code: string sa[6] = { Fort Sumter,
Sorry if this is a dumb question, I'm new to Lift. Suppose I already
another list-dictionary question. I have a dict as follows with unit names and testnames
Another question on SO inspired me to try this code in C#: class Program
Another poster asked about preferred syntax for infinite loops . A follow-up question: Why
Another question asked about determining odd/evenness in C, and the idiomatic (x & 1)
another issue in IE 6... link The navbar link list has a border applied

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.