couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Willox <>
Subject Re: best practice for dynamic content
Date Tue, 31 Jan 2012 17:55:13 GMT
I don't think there is any one "best" way. (You're just going to get
opinions if you ask a question like that.)

Insofar as I understand the point of the views. Leave your views as JSON,
then use small templates (like moustache) to render out those views.

On Tue, Jan 31, 2012 at 10:47 AM, john.tiger <>wrote:

> is it better practice to :
> 1) put most div's in index.html - then hide with css display:none - then
> display:block / display:none with view events
> 2) use lots of small template files called from views
> 3) render html code in js view functions
> 4) use html js scripts in index.html then call with view events

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message