Thanks a lot for the answers!
I have built the pokemon module as instructed in the tutorial. In the show function in the pokemon.php controller file there is the line loading the view
$this->view('new_module/pokemon_index',$data,'main_index');
Everything works fine so far.
I created my own theme with twitter bootstrap and everything still works fine with the default layout.
Then I created another layout named home.php.
Is there a way to use the new layout with the above syntax?
I tried the template library syntax
$this->template->title('Pokemon Module');
$this->template->set('pokemon_list',$pokemon_list);
$this->template->set_theme('my_theme_name');
$this->template->set_layout('home');
$this->template->build('pokemon_index');
The new layout is loaded and the list of pokemons displayed but all the stuff inside {{ }} (widgets, language, configuration) fails to render and it appears within the {{ }}. The same happens when I view the code of the page in the browser I see for instance:
<html lang="{{ language:language_alias }}">
In the User Guide I see that the template library syntax is mentioned but in the tutorials and the actual code there is this other method.