Is it okay to write all html in the client side?
I have a page which is being loaded with data on server side. And with a user interaction, the showing data on the page is being changed by ajax requests. 

In this case, should I request html that holds the data or should I fetch the data from server and prepare html on client side, with javascript?

If I write html(views) both server and client side, I think this will be hard to be maintained and causes code repititions. 

which is the best and conventional way?
Is it okay to write all html in the client side?
===

I have a page which is being loaded with data on server side. And with a user interaction, the showing data on the page is being changed by ajax requests. 

In this case, should I request html that holds the data or should I fetch the data from server and prepare html on client side, with javascript?

If I write html(views) both server and client side, I think this will be hard to be maintained and causes code repititions. 

which is the best and conventional way?