Kuv yuav tawm tswv yim hauv FTL cov ntaub ntawv li cas?
Kuv yuav tawm tswv yim hauv FTL cov ntaub ntawv li cas?

Video: Kuv yuav tawm tswv yim hauv FTL cov ntaub ntawv li cas?

Video: Kuv yuav tawm tswv yim hauv FTL cov ntaub ntawv li cas?
Video: Sisnab muas & Pajntsais vwj: Tub yug nyuj - Ntxhais paj ntaub. 12/12/2022 2024, Kaum ib hlis
Anonim

FTL tag yog me ntsis zoo ib yam li HTML tag, tab sis lawv yog cov lus qhia rau FreeMarker thiab yuav tsis muab luam tawm rau cov zis. Cov lus pom : Cov lus pom zoo ib yam li HTML lus , tab sis lawv delimited los ntawm. Cov lus pom yuav ignored los ntawm FreeMarker , thiab yuav tsis sau rau cov zis.

Raws li, FTL hom ntawv yog dab tsi?

Cov ntaub ntawv siv los ntawm FreeMarker , ib Java tus qauv cav siv los pib tsim cov ntawv tso zis; muaj cov ntawv nyeem thiab FreeMarker hloov pauv cov ntsiab lus thiab cov lus qhia uas siv los ua qhov chaw rau cov ntawv hloov pauv; feem ntau siv rau nws pib tsim HTML nplooj ntawv Web,.

Ib yam li ntawd, koj ua li cas tawm hauv HTML? Cov kauj ruam

  1. Ntxig ib kab lus tawm. Cov lus pom tau raug xaiv los ntawm cov cim npe.
  2. Tsim kom muaj ntau kab lus.
  3. Siv cov lus pom muaj nuj nqi kom ceev cov lej.
  4. Siv cov lus qhia ua haujlwm los nkaum cov ntawv sau rau ntawm cov browsers tsis txhawb nqa.

Hauv qhov no, kev siv FreeMarker template yog dab tsi?

FreeMarker yog Java-based tus qauv cav uas yuav ua tau siv nyob rau hauv stand-alone lossis servlet-based Java cov kev pab cuam. Hauv FreeMarker koj txhais cov qauv , uas yog cov ntawv nyeem uas muaj qhov xav tau tso tawm, tshwj tsis yog tias lawv muaj qhov chaw xws li ${name}, thiab txawm tias qee qhov kev xav zoo li conditionals, loops, thiab lwm yam.

FTL sau ua hom lus twg?

Templates yog sau nyob rau hauv lub FreeMarker Template Language (FTL), uas yog ib hom lus yooj yim, tshwj xeeb (tsis yog hom lus programming puv nkaus li PHP). Feem ntau, ib hom lus programming dav dav (xws li Java ) yog siv los npaj cov ntaub ntawv (xws li database queries, ua lag luam suav).

Pom zoo: