reusing HTML parts

Hi,

I stumbled throug snippets and templates but didnt find or couldnt understand. ;-)

For a static HTML page I have some code segments which are nearly the same on a lot of pages. For instance the menu part. I apologize to compare to dreamweaver but there I can define library elements in the page. When an element is changed all pages with this element can be updated with a single mouse click.

Can I do this in PS too?

best regards
namtscho

1 comment

Hi there,

There is no Dreamweaver-like HTML templates in PhpStorm/WebStorm.

You can use template engines/languages/tools for that and include such fragments where required (with some you can compile final HTML/whatever inadvance). For example: JADE (have a look, first entry when googling for "html templating engine"),  PHP (PHP itself is a templating language), Haml, Mustache, etc (more at http://en.wikipedia.org/wiki/Web_template_system )

Related: http://youtrack.jetbrains.com/issue/WEB-436

0

Please sign in to leave a comment.