InDesign is not a web authoring tool.
Use Muse or Dreamweaver
But their is new App on App Store called
They say you can export it to Idesigned.
But that’s not a website. You use Comp to sketch out a layout and then export it to InDesign, Illustrator or Photoshop. It’s a very impressive app.
then how do you bring the code in in to Muse?
I think you need to back up and start again. Comp is for layouts, not web sites.
Muse is designed to keep the code under the bonnet. You use the InDesign-like graphical interface to create your website, You can bring in animations from Edge Animate,images fromPhotoshop and so on.
If you know InDesign then its easy to create simple websites with Muse and publish them to your own host or use the free one that comes as part of the package called Business Catalyst. If you subsequently really do want to get at the code you can open the site in (say) Dreamweaver, but having done that there's no return back to Muse.
If you have the Creative Suite, Muse comes free with it, so if you do have it, have a play – you'll enjoy it!
Ideally, you would go from InDesign to Photoshop and from Photoshop to another authoring programs, like Muse. InDesign is a much faster way to create layouts but Photoshop is a required step if you want to author a web site using Adobe products.
There's no automated conversion tool from Adobe to go from InDesign to Photoshop because the very structure of their PostScript files is different. We created our own script for Mac users that can process InDesign files and generate layered PSD.