What are common file extensions for web programming languages?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 00:05:26

Add there:

  • ASP.NET
    • .axd
    • .asx
    • .asmx
    • .ashx
    • .aspx

Keep in mind that good URL design will completely hide any underlying file types.

Aymen Mouelhi

I have created a Github gist that contains a list of programming languages and their extensions, here is a subset of the data included in the gist file:

{
  "name":"CoffeeScript",
  "type":"programming",
  "extensions":[
     ".coffee",
     "._coffee",
     ".cake",
     ".cjsx",
     ".cson",
     ".iced"
   ]
  },{
  "name":"ColdFusion",
  "type":"programming",
  "extensions":[
     ".cfm",
     ".cfml"
  ]}

I hope it is helpful.

languages.json.

Xinus

.action -- struts2

.do -- struts1

.xml -- XML

.rss -- RSS feeds

.atom -- Atom feeds(RSS)

(no extension) -- used now a days to increase readability of the URL, check stackoverflow URL

.yaws (Erlang Yaws Web Server)

.js, .html, .htm, .xhtml probably deserve a nod.

.aspx .asp .css

AOLServer using Tcl - .adp

REBOL tends to use .r

But .cgi is also used by some for REBOL CGI scripts.

ASP.NET needs a couple more, but I'm not sure this is exhaustive:

  • aspx
  • ascx
  • asmx (web services)

Here's a few of the commonly-used (but rarely enforced) extensions for some CSS dialects:

Ruby also tended to use .rhtml in the past.

Stellent uses the .hcsp extension for its page templates.

I believe Django uses .dtl.

Matt Lacey

Going old school: .cgi

Typically written in C or Perl

EmFi

Ruby on Rails also uses the following internally for templates (files that are mostly HTML or JavaScript). So they're not really public facing, and are transparent to the end user/robot.

  • .html.erb
  • .erb
  • .rjs

Used to be that most CGI scripts were written in Perl.

.java .cs and .i_am_kidding_i_read_the_question.

On the serious side, swf (Flash) get hidden by the JS that loads them, generally, but they are extensions usually seen by the client. This is a limit case because it's not like JPEG (doesn't allow for web programming) nor like Javascript. But then, neither is PHP/ASP/JSP because from the client side it's just markup :)

IE specific strangeness:

  • .hta -- html application
  • .htc -- html components, allows you to alter IE behavior at runtime, from you website!

Also XML:

  • .svg -- it's not just an image format!

.json has become popular as a data xfer format

.png .jpg .gif are the most common graphics, but there are others.

Also video extensions

-SSI (Server Side Includes), use the extension .shtml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!