CN106021394A - Website construction method and apparatus - Google Patents

Website construction method and apparatus Download PDF

Info

Publication number
CN106021394A
CN106021394A CN201610313321.6A CN201610313321A CN106021394A CN 106021394 A CN106021394 A CN 106021394A CN 201610313321 A CN201610313321 A CN 201610313321A CN 106021394 A CN106021394 A CN 106021394A
Authority
CN
China
Prior art keywords
template
website
page
html page
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610313321.6A
Other languages
Chinese (zh)
Inventor
林小遵
王永军
王国顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Linewell Software Co Ltd
Original Assignee
Fujian Linewell Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Linewell Software Co Ltd filed Critical Fujian Linewell Software Co Ltd
Priority to CN201610313321.6A priority Critical patent/CN106021394A/en
Publication of CN106021394A publication Critical patent/CN106021394A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a website construction method and apparatus, which is used for realizing self-service website construction of a user, keeping unified styles and standard formats of websites, and simplifying website maintenance. In the specific website construction method, a plurality of FTL template files are constructed by using a FreeMarker template engine and stored in folders with different names respectively; multiple sets of HTML page templates are created according to the FTL template files, wherein each HTML page template comprises a cascading style sheet, a JavaScript and a picture, and the cascading style sheet, the JavaScript and the picture are stored in folders with different names respectively; an available HTML page template selected by the user from the multiple sets of HTML page templates is obtained; and a website page is generated by using the available HTML page template, and site information is configured for the website page to create a site.

Description

The establishing method of a kind of website and device
Technical field
The present invention relates to field of computer technology, be specifically related to establishing method and the device of a kind of website.
Background technology
Along with the fast development of information technology Yu the Internet, the public with intergovernmental contact more and more tighter Close, it is the most direct and quick that the advantage of the Internet makes externally to show and publicize government image, makes city energy The input attracted foreign investment with the best image, promotes local expanding economy further.Build government Department website still advances openness of government affairs, makes " transparent government ", the Important Platform of " servicing government ", This just requires that governments at all levels provide degree disclosed in government affairs information and specification, expand serve the people of handling affairs on the net Scope and reinforcement public's participation in terms of government affairs work, draw in the people and government in this way Between distance, make government on the premise of the numerous common people fully enjoy right to know, supervision government public affair row For, strengthen social security, promote the harmony of society, health, fast development.
Along with administrative portal websites at different levels put into operation successively, the application of online E-Government is abundanter, Having higher requirement the function of website, government website is no longer simple government information disclosure, Class function interactive to online working, public's interaction participation etc. provides new higher requirement.Therefore, according to respectively Save the Effective check that annual government website is new, it is desirable to each of establishing district and municipality, (city, district) government of county By complete upgrading portal website, adhere to the one-stop portal website group setting up unified, specification for setting out Point, both can accelerate Web Hosting and the paces of website deployment;Can seek unity of standard again, it is achieved resource is the most in all Enjoy, improve the level of Government Websites Construction;Government function can also be strengthened, save great amount of investment.
Build a station and mostly set up by professional in current website, the government website required for difference, Be required for professional to set up a web site according to concrete requirement, government website usually require that style unified, Format specification, but build a station and be difficult to accomplish above-mentioned requirements when being set up by different professionals in current website, Thus cause government website to there is information and issue the inadequate specification of form, all departments' unit network information needs weight Copy back enters, the inefficient problem of website maintenance.
Summary of the invention
It is an object of the invention to provide establishing method and the device of a kind of website, for realize user from Help and build a station, keep the style unification of website, format specification, simplify the maintenance of website.
In order to achieve the above object, the present invention uses such following technical scheme:
On the one hand, the present invention provides the establishing method of a kind of website, including:
FreeMarker template engine is used to set up multiple FTL template file, and by the plurality of FTL mould Plate file is saved in the file of different names respectively;
It is created that many set html page templates according to the plurality of FTL template file, wherein, each FTL template file is to there being a set of html page template, and described html page template includes: stacking CSS, JavaScript script and picture, described CSS, described JavaScript script and institute State picture to be saved in respectively in the file of different names;
Obtain the available html page template that user selects from described many set html page templates;
Use described available html page template generation Website page, and be described Website page configuration station Dot information thus be created that website.
On the other hand, the present invention provides the device of building a station of a kind of website, including:
Template file sets up module, is used for using FreeMarker template engine to set up multiple FTL template literary composition Part, and the plurality of FTL template file is saved in the file of different names respectively;
Page Template creation module, overlaps HTML for being created that according to the plurality of FTL template file more Page Template, wherein, each FTL template file is to having a set of html page template, described HTML Page Template includes: CSS, JavaScript script and picture, described CSS, described JavaScript script and described picture are saved in the file of different names respectively;
Available templates acquisition module, is used for obtaining user and selects from described many set html page templates Available html page template;
Website creation module, is used for using described available html page template generation Website page, and is Described Website page configuration site information thus be created that website.
After using technique scheme, the technical scheme that the present invention provides will have the following advantages:
Multiple FTL template file is set up first by FreeMarker template engine, and by multiple FTL moulds Plate file is saved in the file of different names respectively, is then created that according to multiple FTL template files Many set html page templates, wherein, each FTL template file is to there being a set of HTML page face mould Plate, html page template includes: CSS, JavaScript script and picture, CSS, JavaScript script and picture are saved in the file of different names respectively, next obtain user from many The available html page template selected in set html page template, finally uses available HTML Page Template generate Website page, and for Website page configuration site information thus be created that website.Due to The embodiment of the present invention can use FreeMarker template engine be quickly created that many set HTML page face moulds Plate, user has only to select to use which set html page template can automatically create out Website page, for Website page becomes, after adding site information, the website created.What the embodiment of the present invention provided builds Method of standing is the lowest to the requirement of website creator, it is possible to achieve the website self-building of user, keeps website Style is unified, format specification, simplifies the maintenance of website.
Accompanying drawing explanation
Fig. 1 provides the process blocks schematic diagram of the establishing method of a kind of website for the embodiment of the present invention;
The composition structural representation of the device of building a station of a kind of website that Fig. 2-a provides for the embodiment of the present invention;
The composition structural representation of a kind of website creation module that Fig. 2-b provides for the embodiment of the present invention;
The composition structural representation of the device of building a station of the another kind of website that Fig. 2-c provides for the embodiment of the present invention;
The composition structural representation of the another kind of website creation module that Fig. 2-d provides for the embodiment of the present invention.
Detailed description of the invention
Embodiments provide establishing method and the device of a kind of website, for realizing the self-service of user Build a station, keep the style unification of website, format specification, simplify the maintenance of website.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all Embodiment.Based on the embodiment in the present invention, the every other enforcement that those skilled in the art is obtained Example, broadly falls into the scope of protection of the invention.
Term in description and claims of this specification and above-mentioned accompanying drawing " includes " and " having " And their any deformation, it is intended that cover non-exclusive comprising, in order to comprise a series of unit Process, method, system, product or equipment are not necessarily limited to those unit, but can include the most clearly That list or for intrinsic other unit of these processes, method, product or equipment.
It is described in detail individually below.One embodiment of the establishing method of website of the present invention, can apply In the website self-building scene of user, user can the method at Self-operating Self-help construction multiple subnet station, with Realize style unified, format specification, reduces article and repeats typing, improve work efficiency, it is simple to management. Refer to shown in Fig. 1, the establishing method of the website that the present invention provides, may include steps of:
101, FreeMarker template engine is used to set up multiple FTL template file, and by multiple FTL Template file is saved in the file of different names respectively.
In embodiments of the present invention, it is possible to use FreeMarker template engine sets up template file, wherein, This template file is the template file using FreeMarker Template Language (i.e. FTL) to write, Therefore FTL template file it is also referred to as.FreeMarker is a template engine, i.e. a kind of based on template With data to be changed, and be used for generate output text (html web page, Email, configuration file, Source code etc.) general utility tool.It is not towards end user, but a java class storehouse, user The assembly of user website content can be embedded.The template of FreeMarker template engine is written as FreeMarker Template Language, belongs to simple, special language.Need to prepare data in real program language Show, such as data base querying and business computing, the data that template for displaying is already prepared to afterwards.This Inventive embodiments use FreeMarker template engine can quickly be created that multiple FTL template file, Specifically can set up polytype FTL template file according to the actual scene demand of user, not do Limit.The multiple FTL template files created for FreeMarker template engine in the embodiment of the present invention need To preserve respectively according to the file of different names, in order to call each single FTL template literary composition Part, such as, the several file of title respectively, just will generate after often generating a FTL template file FTL template file be saved in a file.Generate multiple FTL template file, base the most simultaneously Corresponding relation in template file and file preserves FTL template file.
In some embodiments of the invention, to use FreeMarker template engine to set up multiple for step 101 FTL template file, specifically may include that
A1, use FreeMarker template engine are by template file and the data object class solution of dynamic binding Analysis generates multiple FTL template files, and FTL template file includes static page.
Wherein, use FreeMarker template engine by template file and the data object class of dynamic binding Resolve and generate multiple FTL template files.Such as, newly-built template file under project root, It is used for depositing Template file, will can often overlap the literary composition of the FTL template file different names of Page Template Part nip separates.Being illustrated below, Template file file is as follows:<html>... hello $ name ?!...</html>, Java objects class is as follows: ... data.name=" Fred ";..., by Template file File and Java objects class are input to Free marker template engine, then Output is: <html>…helloFred!...</html>, this Output is the FTL template file of output.
102, it is created that many set html page templates according to multiple FTL template files, wherein, each FTL template file is to there being a set of html page template, and html page template includes: cascading style Table, JavaScript script and picture, CSS, JavaScript script and picture are saved in not respectively With in the file of title.
In embodiments of the present invention, the Page Template using FTL template file to be created that uses hypertext mark Note language (HTML, HyperText Markup Language) page type, is standard generalized markup language An application under Yan.Hypertext can comprise picture, link, even music, journey in referring to the page The non-legible element such as sequence.The structure of HTML includes " head " partly (Head) and " main body " portion Dividing (Body), wherein " head " portion provides the information about webpage, " main body " part to provide the concrete interior of webpage Hold.FreeMarker language is used to be created that the html page template of many sets, for HTML page face mould Plate that plate includes and the column that respective modules is arranged can be combined with the needs of user and arrange, tool Body, include following three types template elements in html page template: CSS, JavaScript Script and picture, CSS, JavaScript script and picture are saved in the file of different names respectively In folder.Wherein, CSS (Cascading Style Sheets, CSS) can accomplish that webpage shows A kind of form design language separated with content.The position typesetting of the object in webpage can be carried out by CSS The accurate control of Pixel-level, supports almost all of font size pattern, has web object and model The ability of pattern editor, and can carry out preliminary interaction design, is that to be currently based on textual presentation classic Performance design language.CSS can simplify according to the understandability of different users or optimize literary style, For various people, there is stronger readability.JavaScript, is called for short JS, is a kind of literal translation formula script language Speech, is a kind of regime type, weak type, language based on prototype, built-in support type.Its explanation Device is referred to as JavaScript engine, for a part for browser, is widely used in the script of client, Can use on html web page, be used for increasing dynamic function to html web page.HTML page face mould CSS, JavaScript script and picture that plate includes need to be saved in respectively the file of different names In folder, in order to need the concrete element used when calling different html page template.
It should be noted that the embodiment of the present invention can design many set html page templates, pattern CSS, JavaScript script and picture need to make a distinction with the file of different names, automatically build a station Time create by Name Documents that pattern, JavaScript script and picture reproduction to user are defined Build out the pattern of another website, JavaScript script and picture.
103, the available html page template that user selects from many set html page templates is obtained.
In embodiments of the present invention, designing many set html page templates, these overlap html page more Template can be directly displayed to user, and user can browse to determine at any time to be needed to use above-mentioned HTML page Which html page template, such as user in face die plate can click on the file of different Page Template Select concrete html page template.When user determines selection output, can get available Html page template, such as, indicate which html page template of use for using by the mark of template The available html page template that family selects.
In other embodiments of the present invention, it is also possible to after creating the html page template of many sets, Automatically select one of them html page template html page template by default, if user does not select Select html page template, or when user skips html page template configuration, can directly use silent Recognize html page template, because the website that the dislocation configuration of user or use cause creates lose to avoid Lose.
104, use available html page template generation Website page, and believe for Website page configuration site Cease thus be created that website.
In embodiments of the present invention, after getting available html page template, this available HTML page Face die plate is to need as Page Template to generate the page, directly by available html page template Call operation to generate Website page, wherein, be just created that the Website page of correspondence according to Page Template It is the process needing the template elements included by Page Template to be all loaded as the browsable content of pages of user, Specific implementation does not limits.After generating Website page, then by pre-configured site information configuration To Website page, thus being created that the website that user needs, the whole process of building a station can self-service complete, right The specialty of user requires seldom, it is simple to the operation of user.
In some embodiments of the invention, step 104 uses available html page template generation net Stand the page, specifically may include steps of:
B1, the acquisition predefined destination folder of user;
B2, by FTL template file corresponding for available html page template, and available html page CSS, JavaScript script and picture reproduction that template includes are to the predefined file destination of user In folder.
Wherein, destination folder is that user is predefined, needs to write the net created in destination folder Stand the page, can determine that available html page template when generating Website page by step 103, FTL template file that this available html page template is corresponding and available html page template bag The CSS, JavaScript script and the picture that include are required for copying in destination folder, concrete, In destination folder, FTL template file, CSS, JavaScript script and picture can It is saved in each file that title is different, thus the destination folder obtained has been generated as creating Website page.
In some embodiments of the invention, step 102 is created that many sets according to multiple FTL template files After html page template, in the establishing method of the website that the embodiment of the present invention provides, before performing Outside the step 103 stated, the establishing method of this website can also comprise the steps:
Many set html page templates are write out common template by C1, use FreeMarker programming language, All plates that common template includes are each configured with unique station location marker.
Wherein, with FreeMarker programming language, many set html page templates are write common template, should Common template is again to write the many sets html page template designed to obtain, for general Template has referred to all of Page Template content in above-mentioned many set html page templates, the most general Template can arrange concrete CSS, JavaScript script and picture, in common template All plates are each configured with unique station location marker, and this unique station location marker refers to that plate is in Universal Die Column position in plate, plate and the value of column uniqueness in html page represent, Mei Gewei One value represents the display location that each column is residing on the page, and such user can repair the most in the background Change unique value to replace plate and column position, it is not necessary to go again to revise html page code.
Realize under scene what the embodiment of the present invention performed step C1, step 104 uses available HTML Page Template generates Website page, specifically may include that
D1, display to the user that common template;
D2, receive user to the amendment of station location marker in common template, and according to amended station location marker Replace the plate in common template.
Wherein, after setting up many set html page templates, perform step C1, write out Universal Die Plate, displays to the user that the common template write, and in common template, station location marker can be determined by user, When user needs to modify certain plate, directly replace the position mark that the plate needing to revise is corresponding Know, thus can replace in common template according to the amended station location marker of user in common template Plate, thus realize the user's quick amendment to plate, and without revising html page code.
In other embodiments of the present invention, the use in step 104 can use html page template raw Become Website page, specifically may include steps of:
E1, the content of pages information of reception user's input, content of pages information includes: the head figure of the page Sheet, flash animation, the afterbody content of the page;
E2 to, content of pages information is added in available html page template generation Website page.
Wherein, after determining available html page template, user can be somebody's turn to do with further modification Available html page template, such as user can revise available html page template head picture, Flash animation, afterbody content etc., so that available html page template can meet user to website The particular/special requirement of design.In actual applications, in html page template, all plates are each configured with only The head picture of the station location marker of, the such as page, flash animation, the afterbody content of the page are respectively configured There is unique station location marker, when user revises station location marker corresponding to head picture, then can be by only The replacement of the station location marker of completes the amendment of head picture in html page template, in like manner, the page Flash animation and the content information of afterbody user can also be allowed to carry out by the value of stationary column position Upload amendment.After html page template writes, user only need to select available HTML page face mould Plate fill station dot information, upload head picture or flash animation and afterbody content carry out submitting to just can be complete Becoming directly to build a station, user has the most only built a station, and need to generate a lower page can be achieved with complete station.The present invention Static template language can be used in embodiment to write template, and user only need to revise name of tv column, plate position Put and head picture, flash animation, afterbody content just can be built a station by a key, simple, quick, operable Property is strong.The embodiment of the present invention writes html page template with FreeMarker language and captures data, build By the FTL template file of template, the pattern file of html page, JavaScript script, picture when standing Copy to user-defined not repeat can complete under Name Documents website self-building, be a kind of efficiently, simple Establishing method.
By the previous embodiment illustration to the present invention, draw first by FreeMarker template Hold up and set up multiple FTL template file, and multiple FTL template files are saved in respectively the literary composition of different names In part folder, then it is created that many set html page templates according to multiple FTL template files, wherein, often Individual FTL template file is to there being a set of html page template, and html page template includes: stacking sample Formula table, JavaScript script and picture, CSS, JavaScript script and picture are saved in respectively In the file of different names, what next acquisition user selected from many set html page templates can Use html page template, finally use available html page template generation Website page, and be website Page configuration site information thus be created that website.Owing to the embodiment of the present invention can use FreeMarker Template engine is quickly created that many set html page templates, and user has only to select to use where overlap HTML Page Template can automatically create out Website page, becomes wound after adding site information for Website page The website built.The establishing method that the embodiment of the present invention provides is the lowest to the requirement of website creator, The website self-building of user can be realized, keep the style unification of website, format specification, simplify the dimension of website Protect.
Previous embodiment introduces the establishing method of the website that the embodiment of the present invention provides, and next introduces and is somebody's turn to do The device of building a station of the corresponding website of method, refers to shown in Fig. 2-a, and the device 200 of building a station of website includes:
Template file sets up module 201, is used for using FreeMarker template engine to set up multiple FTL mould Plate file, and the plurality of FTL template file is saved in the file of different names respectively;
Page Template creation module 202, for being created that many sets according to the plurality of FTL template file Html page template, wherein, each FTL template file is to having a set of html page template, institute State html page template to include: CSS, JavaScript script and picture, described cascading style Table, described JavaScript script and described picture are saved in the file of different names respectively;
Available templates acquisition module 203, is used for obtaining user and selects from described many set html page templates The available html page template selected out;
Website creation module 204, is used for using described available html page template generation Website page, And for described Website page configuration site information thus be created that website.
In some embodiments of the invention, described template file sets up module 201, specifically for using It is multiple that FreeMarker template engine resolves generation by the data object class of template file and dynamic binding FTL template file, described FTL template file includes static page.
In some embodiments of the invention, refer to as shown in Fig. 2-b, described website creation module 204, Including:
Destination folder acquisition module 2041, is used for obtaining the predefined destination folder of described user;
Replication module 2042, is used for FTL template file corresponding for described available html page template, The CSS, JavaScript script and the picture reproduction that include with described available html page template are arrived In the predefined destination folder of described user.
In some embodiments of the invention, refer to as shown in fig. 2-c, the device of building a station of described website 200 also include: template writes module 205, wherein,
Described template writes module 205, for described Page Template creation module 202 according to the plurality of After FTL template file is created that many set html page templates, use FreeMarker programming language pair Described many set html page templates write out common template, all plates that described common template includes It is each configured with unique station location marker;
Described website creation module 204, specifically for showing described common template to described user;Receive institute State user to the amendment of station location marker in described common template, and replace institute according to amended station location marker State the plate in common template.
In other embodiments of the present invention, refer to as shown in Fig. 2-d, described website creation module 204, including:
Content of pages receiver module 2043, for receiving the content of pages information of described user input, described Content of pages information includes: the head picture of the page, flash animation, the afterbody content of the page;
Page creation module 2044, for adding described content of pages information to described available HTML page Face die plate generates described Website page.
By the previous embodiment illustration to the present invention, draw first by FreeMarker template Hold up and set up multiple FTL template file, and multiple FTL template files are saved in respectively the literary composition of different names In part folder, then it is created that many set html page templates according to multiple FTL template files, wherein, often Individual FTL template file is to there being a set of html page template, and html page template includes: stacking sample Formula table, JavaScript script and picture, CSS, JavaScript script and picture are saved in respectively In the file of different names, what next acquisition user selected from many set html page templates can Use html page template, finally use available html page template generation Website page, and be website Page configuration site information thus be created that website.Owing to the embodiment of the present invention can use FreeMarker Template engine is quickly created that many set html page templates, and user has only to select to use where overlap HTML Page Template can automatically create out Website page, becomes wound after adding site information for Website page The website built.The establishing method that the embodiment of the present invention provides is the lowest to the requirement of website creator, The website self-building of user can be realized, keep the style unification of website, format specification, simplify the dimension of website Protect.
Additionally it should be noted that, device embodiment described above is only schematically, wherein said The unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or also may be used To be distributed on multiple NE.Some or all of mould therein can be selected according to the actual needs Block realizes the purpose of the present embodiment scheme.It addition, in the device embodiment accompanying drawing of present invention offer, mould Annexation between block represents have communication connection between them, specifically can be implemented as one or more Communication bus or holding wire.Those of ordinary skill in the art are not in the case of paying creative work, i.e. It is appreciated that and implements.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this Invention can add the mode of required common hardware by software and realize, naturally it is also possible to pass through specialized hardware Realize including special IC, dedicated cpu, private memory, special components and parts etc..General feelings Under condition, all functions completed by computer program can realize with corresponding hardware easily, and And, the particular hardware structure being used for realizing same function can also be diversified, such as analog circuit, Digital circuit or special circuit etc..But, the most more in the case of software program realize be more Good embodiment.Based on such understanding, technical scheme is the most in other words to existing skill The part that art contributes can embody with the form of software product, and this computer software product stores In the storage medium that can read, as the floppy disk of computer, USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc., including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
In sum, above example only in order to technical scheme to be described, is not intended to limit; Although being described in detail the present invention with reference to above-described embodiment, those of ordinary skill in the art should Work as understanding: the technical scheme described in the various embodiments described above still can be modified by it, or to it Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (10)

1. the establishing method of a website, it is characterised in that including:
FreeMarker template engine is used to set up multiple FTL template file, and by the plurality of FTL mould Plate file is saved in the file of different names respectively;
It is created that many set html page templates according to the plurality of FTL template file, wherein, each FTL template file is to there being a set of html page template, and described html page template includes: stacking CSS, JavaScript script and picture, described CSS, described JavaScript script and institute State picture to be saved in respectively in the file of different names;
Obtain the available html page template that user selects from described many set html page templates;
Use described available html page template generation Website page, and be described Website page configuration station Dot information thus be created that website.
The establishing method of a kind of website the most according to claim 1, it is characterised in that described use FreeMarker template engine sets up multiple FTL template file, including:
FreeMarker template engine is used to resolve raw by the data object class of template file and dynamic binding Multiple FTL template file, described FTL template file is become to include static page.
The establishing method of a kind of website the most according to claim 1, it is characterised in that described use Described available html page template generation Website page, including:
Obtain the predefined destination folder of described user;
By FTL template file corresponding for described available html page template, and described available HTML CSS, JavaScript script and picture reproduction that Page Template includes are predefined to described user In destination folder.
The establishing method of a kind of website the most according to claim 1, it is characterised in that described basis After the plurality of FTL template file is created that many set html page templates, described method also includes:
Use FreeMarker programming language that described many set html page templates are write out common template, All plates that described common template includes are each configured with unique station location marker;
The described available html page template generation Website page of described use, including:
Described common template is shown to described user;
Receive described user to the amendment of station location marker in described common template, and according to amended position Mark replaces the plate in described common template.
The establishing method of a kind of website the most according to claim 1, it is characterised in that described use Described available html page template generation Website page, including:
Receiving the content of pages information of described user input, described content of pages information includes: the head of the page Portion's picture, flash animation, the afterbody content of the page;
Described content of pages information is added in described available html page template and generates described website pages Face.
6. the device of building a station of a website, it is characterised in that including:
Template file sets up module, is used for using FreeMarker template engine to set up multiple FTL template literary composition Part, and the plurality of FTL template file is saved in the file of different names respectively;
Page Template creation module, overlaps HTML for being created that according to the plurality of FTL template file more Page Template, wherein, each FTL template file is to having a set of html page template, described HTML Page Template includes: CSS, JavaScript script and picture, described CSS, described JavaScript script and described picture are saved in the file of different names respectively;
Available templates acquisition module, is used for obtaining user and selects from described many set html page templates Available html page template;
Website creation module, is used for using described available html page template generation Website page, and is Described Website page configuration site information thus be created that website.
The device of building a station of a kind of website the most according to claim 6, it is characterised in that described template Module set up by file, specifically for using FreeMarker template engine by template file and dynamic binding Data object class resolve generate multiple FTL template files, described FTL template file includes static page.
The device of building a station of a kind of website the most according to claim 6, it is characterised in that described website Creation module, including:
Destination folder acquisition module, is used for obtaining the predefined destination folder of described user;
Replication module, is used for FTL template file corresponding for described available html page template, and institute State CSS, JavaScript script and picture reproduction that available html page template includes to described In the predefined destination folder of user.
The device of building a station of a kind of website the most according to claim 6, it is characterised in that described website Device of building a station also include: template writes module, wherein,
Described template writes module, for described Page Template creation module according to the plurality of FTL template After document creation goes out many set html page templates, use FreeMarker programming language to described many sets Html page template writes out common template, and all plates that described common template includes are respectively configured There is unique station location marker;
Described website creation module, specifically for showing described common template to described user;Receive described User is to the amendment of station location marker in described common template, and replaces described according to amended station location marker Plate in common template.
The device of building a station of a kind of website the most according to claim 6, it is characterised in that described net Stand creation module, including:
Content of pages receiver module, for receiving the content of pages information of described user input, the described page Content information includes: the head picture of the page, flash animation, the afterbody content of the page;
Page creation module, for adding described available HTML page face mould to by described content of pages information Plate generates described Website page.
CN201610313321.6A 2016-05-12 2016-05-12 Website construction method and apparatus Pending CN106021394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610313321.6A CN106021394A (en) 2016-05-12 2016-05-12 Website construction method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610313321.6A CN106021394A (en) 2016-05-12 2016-05-12 Website construction method and apparatus

Publications (1)

Publication Number Publication Date
CN106021394A true CN106021394A (en) 2016-10-12

Family

ID=57100056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610313321.6A Pending CN106021394A (en) 2016-05-12 2016-05-12 Website construction method and apparatus

Country Status (1)

Country Link
CN (1) CN106021394A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528126A (en) * 2016-10-26 2017-03-22 李露青 Template processing method and device
CN106844756A (en) * 2017-02-17 2017-06-13 山东浪潮云服务信息科技有限公司 A kind of lightweight contents management method
CN108153779A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Page data impression information processing method and processing device
CN108170430A (en) * 2017-12-26 2018-06-15 阿里巴巴集团控股有限公司 A kind of method and system of showing interface
CN108170458A (en) * 2017-12-29 2018-06-15 广州品唯软件有限公司 A kind of Website page update method and system
CN108182056A (en) * 2017-12-28 2018-06-19 天脉聚源(北京)科技有限公司 The method and device of the frame of multiple Webpages is configured in a kind of intelligence
CN109697055A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Generate the method and system of the mobile App page
CN109739499A (en) * 2018-12-11 2019-05-10 北京字节跳动网络技术有限公司 Blockbased Web Page construction method, device and electronic equipment
CN111079062A (en) * 2019-12-27 2020-04-28 北京达佳互联信息技术有限公司 Page creating method and device, electronic equipment and storage medium
CN111310005A (en) * 2020-02-07 2020-06-19 北京达佳互联信息技术有限公司 Network request processing method and device, server and storage medium
CN111580804A (en) * 2020-03-31 2020-08-25 完美世界(北京)软件科技发展有限公司 Software project development method and device
CN112559100A (en) * 2020-12-08 2021-03-26 北京航天云路有限公司 User-defined configuration dynamic webpage generation method
CN112632437A (en) * 2020-11-27 2021-04-09 中国银联股份有限公司 Webpage generating method and device and computer readable storage medium
CN112926011A (en) * 2021-04-13 2021-06-08 郑州悉知信息科技股份有限公司 Station group creating method and system
CN112966198A (en) * 2021-02-25 2021-06-15 平安壹钱包电子商务有限公司 Cascading style sheet data generation method, system, computer device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308188B1 (en) * 1997-06-19 2001-10-23 International Business Machines Corporation System and method for building a web site with automated workflow
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN103577536A (en) * 2013-09-04 2014-02-12 广东全通教育股份有限公司 System and method for generating and improving template website
CN104317874A (en) * 2014-10-20 2015-01-28 北京锐安科技有限公司 Device and method for staticizing dynamic webpage
CN105373567A (en) * 2014-09-01 2016-03-02 北京奇虎科技有限公司 Page generation method and client

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308188B1 (en) * 1997-06-19 2001-10-23 International Business Machines Corporation System and method for building a web site with automated workflow
CN103577536A (en) * 2013-09-04 2014-02-12 广东全通教育股份有限公司 System and method for generating and improving template website
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN105373567A (en) * 2014-09-01 2016-03-02 北京奇虎科技有限公司 Page generation method and client
CN104317874A (en) * 2014-10-20 2015-01-28 北京锐安科技有限公司 Device and method for staticizing dynamic webpage

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528126A (en) * 2016-10-26 2017-03-22 李露青 Template processing method and device
CN108153779B (en) * 2016-12-05 2022-04-05 阿里巴巴集团控股有限公司 Page data delivery information processing method and device
CN108153779A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Page data impression information processing method and processing device
CN106844756A (en) * 2017-02-17 2017-06-13 山东浪潮云服务信息科技有限公司 A kind of lightweight contents management method
CN109697055B (en) * 2017-10-23 2022-04-12 北京京东尚科信息技术有限公司 Method and system for generating mobile App page
CN109697055A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Generate the method and system of the mobile App page
CN108170430A (en) * 2017-12-26 2018-06-15 阿里巴巴集团控股有限公司 A kind of method and system of showing interface
CN108182056A (en) * 2017-12-28 2018-06-19 天脉聚源(北京)科技有限公司 The method and device of the frame of multiple Webpages is configured in a kind of intelligence
CN108170458A (en) * 2017-12-29 2018-06-15 广州品唯软件有限公司 A kind of Website page update method and system
CN109739499A (en) * 2018-12-11 2019-05-10 北京字节跳动网络技术有限公司 Blockbased Web Page construction method, device and electronic equipment
CN111079062A (en) * 2019-12-27 2020-04-28 北京达佳互联信息技术有限公司 Page creating method and device, electronic equipment and storage medium
CN111310005A (en) * 2020-02-07 2020-06-19 北京达佳互联信息技术有限公司 Network request processing method and device, server and storage medium
CN111310005B (en) * 2020-02-07 2024-07-23 北京达佳互联信息技术有限公司 Processing method and device of network request, server and storage medium
CN111580804A (en) * 2020-03-31 2020-08-25 完美世界(北京)软件科技发展有限公司 Software project development method and device
CN111580804B (en) * 2020-03-31 2023-05-26 完美世界(北京)软件科技发展有限公司 Method and device for developing software project
CN112632437A (en) * 2020-11-27 2021-04-09 中国银联股份有限公司 Webpage generating method and device and computer readable storage medium
CN112559100A (en) * 2020-12-08 2021-03-26 北京航天云路有限公司 User-defined configuration dynamic webpage generation method
CN112966198A (en) * 2021-02-25 2021-06-15 平安壹钱包电子商务有限公司 Cascading style sheet data generation method, system, computer device and storage medium
CN112926011A (en) * 2021-04-13 2021-06-08 郑州悉知信息科技股份有限公司 Station group creating method and system
CN112926011B (en) * 2021-04-13 2023-10-27 郑州悉知信息科技股份有限公司 Station group creation method and system

Similar Documents

Publication Publication Date Title
CN106021394A (en) Website construction method and apparatus
CN114035773B (en) Configuration-based low-code form development method, system and device
CN101025738B (en) Template-free dynamic website generating method
Tennyson et al. Management of computer-based instruction: Design of an adaptive control strategy
US10210142B1 (en) Inserting linked text fragments in a document
CN104239284A (en) Method and device for automatic image-text composition
MX2007011598A (en) Determining fields for presentable files and extensible markup language schemas for bibliographies and citations.
CN104317563A (en) Online courseware cooperation development system
CN105094775B (en) Webpage generation method and device
CN106469047A (en) A kind of list implementation method and device
CN106610929A (en) Method and device for typesetting digital publishing structured content file
CN111562911A (en) Webpage editing method and device and storage medium
CN109783184A (en) User&#39;s customizing form generation method
CN105988986A (en) Information processing method and device
CN112418875A (en) Cross-platform tax intelligent customer service corpus migration method and device
Muslih Utilization of a Web-Based Geographic Information System for Land Mapping and Some Its Overview: A Case Study in Sukabumi District, Indonesia
CN111931037A (en) Method, device and equipment for recommending reading works and storage medium
CN110750973A (en) Dynamic template configuration method and system
CN114564931A (en) Electronic certificate generating method and system based on tinymce
CN114139517A (en) Method and system for automatically combining reports based on chapter labels
JP2007219774A (en) Electronic form distribution system and distribution method
CN111027280A (en) Method and system for generating and rendering digital publication and readable storage medium
KR100530256B1 (en) Method and apparatus for automatically searching and linking internet message
Dyrenfurth et al. Technological Literacy: More than Computer Literacy!
Ernest et al. A model to reduce anxiety and increase utilization of computers in the classroom

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012