Advanced embedding

Hi Vaadin,
we are creating several service with Vaadin and need to apply a certain layout according to our
company layout. I found two ways to implement it:

  1. Embedding UIs in Web Pages from the book
  2. Create a CustomLayout

Which way would you suggest to go with and are there small but complete example, so we can learn from them and maybe apply them?