rows, err := app.db.Query("SELECT house_id, title, thumb_url FROM publichouses WHERE approved = 1 ORDER BY updated DESC LIMIT 10")
rows, err := app.db.Query(fmt.Sprintf("SELECT house_id, title, thumb_url FROM publichouses WHERE approved = 1 ORDER BY updated DESC LIMIT %d", app.cfg.BrowseItems))
switch {
case err == sql.ErrNoRows:
return nil, impart.HTTPError{http.StatusNotFound, "Return to sender. Address unknown."}
<p><strong>Purpose</strong>. To provide a simple HTML testing ground with no cruft or fuss.</p>
<p><strong>Editing</strong>. Pages can be edited again from the same computer / browser they were created on. If you clear your browser data (specifically local storage) you will lose this ability.</p>
<p><strong>Limitations</strong>. There is currently no way to delete pages.</p>
<p><strong>Discovery</strong>. See what others have created on our Twitter account, <a target="_blank" href="https://twitter.com/htmlhouse">@HTMLhouse</a>. Tweet us the URL of any page you create (and whether you want credit) and we'll share it!</p>
<p><strong>Discovery</strong>. <a href="/browse">Browse</a> what others have publicly created. Mark your page as <strong>Public</strong> when you publish it to be added!</p>
<p><strong>Twitter</strong>. We announce updates and some published pages on <a target="_blank" href="https://twitter.com/htmlhouse">@HTMLhouse</a>.</p>
<p><strong>Abuse</strong>. Please don't poop in the pool.</p>