Динамический HTML
Здравствуйте. Скажите можно ли как-то с помощью javascript создавать динамическую страницу. Допустим есть 4 блока страницы: хедер, контент, сайдбар, футер. Если у меня есть больше одно страницы, то мне уже накладно что-то менять в подключении библиотек или соедржимого в блоках, так как нужно менять на всех страницах. Можно ли разбить страницу на блоки и подключать средствами javascript? Какие вообще бывают способы? Где про них можно почитать? Заранее спасибо)
|
Инклюдить можно и виртуально
<!--#include virtual="block.html" --> а сделаешь смену на js и поисковики не увидят текст |
Спасибо)
|
assd18,
в .htaccess допиши строку AddHandler server-parsed .shtml .shtm .sht .html .htm |
Пытаюсь настроить .htaccess apache tomcat, но безуспешно. Може кто-то встречался с такой проблемой?
Вот мой конфиг:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
|
| Часовой пояс GMT +3, время: 23:03. |