Integration with twig / symfony

Is there any documentation or best practices to integrate the theme (Keen) in a symfony/twig project ?

My goal is to preapre a starter layout for all my future projects.

But as I can see, if you change an option and rebuild the layouts with the Layout Builder", the partials are completely different.
So I will have to rewrite them as twig.

Is there something I misunderstood ?

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)

Hi,

The layout builder will be a great helper for your server-side integration. You can get the HTML partials from the layout builder and convert into your view template and use them further. You can use the build tools for the assets and just include your assets with the generated partials HTML. Also, you can use gulp or webpack build tools to compile the assets upon sass/js code changes in the "src" folder.

For more info please refer to the theme Docs and Video Tuts.

Regards,
Sean

Hi Sean,
I understand my mistake.
I tried to compare the default template (with no partials) to the partials. Its non-sense.
If someone is interested ..
I will do:
- First use the layout builder to generate reference partials and keep them unmodified as a reference.
- Turn them into twig templates
- If i have to change one option, i can regenerate partials with the layout builder, compare them to the reference ones and adapt my twig templates in consequence.

Great! Thanks for sharing this. happy

Hi, heidyz.

Do you know some good tutorials / guide to integrate KeenThemes (metronic) in a Symfony Project with webpack ?

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(